pub fn remove_consumer(&mut self, consumer_id: ConsumerId) -> Option<Consumer> {
        if let Some(consumer) = self.consumers.remove(&consumer_id) {
            return Some(consumer);
        } else {
            println!("CONSUMER NOT FOUND");
            None
        }
    }
///
/// This function removes the provided consumer id from list of consumers.
///
This function removes the provided consumer id from list of consumers.
This function removes the provided consumer id from list of consumers .
pub fn remove_consumer(&mut self, consumer_id: ConsumerId) -> Option<Consumer> {
        if let Some(consumer) = self.consumers.remove(&consumer_id) {
            return Some(consumer);
        } else {
            println!("CONSUMER NOT FOUND");
            None
        }
    }
pub fn remove_consumer ( & mut self , consumer_id : ConsumerId ) -> Option < Consumer > { if let Some ( consumer ) = self . consumers . remove ( & consumer_id ) { return Some ( consumer ) ; } else { println ! ( " " ) ; None } }
This function removes the provided consumer id from list of consumers.
This function removes the provided consumer id from list of consumers .
&mut self
consumer_id
ConsumerId
&mut self
consumer_id
ConsumerId