pub struct HandlerChannelStorage(/* private fields */);
Implementations§
Source§impl HandlerChannelStorage
impl HandlerChannelStorage
pub fn new(session_receiver: SessionReceiver) -> Self
pub fn del_session(&mut self) -> bool
pub fn get_session(&self) -> Option<&SessionReceiver>
pub fn add_producer( &mut self, producer_id: ProducerId, producer_name: ProducerName, receiver: ProducerReceiver, ) -> bool
pub fn del_producer(&mut self, producer_id: ProducerId) -> bool
pub fn get_producer( &self, producer_id: ProducerId, ) -> Option<(&ProducerName, &ProducerReceiver)>
pub fn add_consumer( &mut self, consumer_id: ConsumerId, receiver: ConsumerReceiver, ) -> bool
pub fn del_consumer(&mut self, consumer_id: ConsumerId) -> bool
pub fn get_consumer(&self, consumer_id: ConsumerId) -> Option<&ConsumerReceiver>
pub fn items(&self) -> Vec<HandlerChannelStorageItem<'_>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HandlerChannelStorage
impl RefUnwindSafe for HandlerChannelStorage
impl Send for HandlerChannelStorage
impl Sync for HandlerChannelStorage
impl Unpin for HandlerChannelStorage
impl UnwindSafe for HandlerChannelStorage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more