pub fn push(&mut self, item: T, item_desc: &str, log: &Logger) {
        if self.queue.len() == self.max_length {
            error!(
                log,
                "Work queue is full";
                "msg" => "the system has insufficient resources for load",
                "queue_len" => self.max_length,
                "queue" => item_desc,
            )
        } else {
            self.queue.push_back(item);
        }
    }
/// Add a new item to the queue.
///
/// Drops `item` if the queue is full.
Add a new item to the queue.
Drops `item` if the queue is full.
Add a new item to the queue . Drops ` item ` if the queue is full .
pub fn push(&mut self, item: T, item_desc: &str, log: &Logger) {
        if self.queue.len() == self.max_length {
            error!(
                log,
                "Work queue is full";
                "msg" => "the system has insufficient resources for load",
                "queue_len" => self.max_length,
                "queue" => item_desc,
            )
        } else {
            self.queue.push_back(item);
        }
    }
pub fn push ( & mut self , item : T , item_desc : & str , log : & Logger ) { if self . queue . len ( ) == self . max_length { error ! ( log " " " " " " " " self max_length " " item_desc ) } else { self . queue . push_back ( item ) ; } }
Add a new item to the queue.
Add a new item to the queue .
&mut self
item
T
item_desc
&str
log
&Logger