Struct pulsar_binary_protocol_spec::client_channel::handler_channel_storage::HandlerChannelStorage [−][src]
Implementations
impl HandlerChannelStorage
[src]
pub fn new(session_receiver: SessionReceiver) -> Self
[src]
pub fn del_session(&mut self) -> bool
[src]
pub fn get_session(&self) -> Option<&SessionReceiver>
[src]
pub fn add_producer(
&mut self,
producer_id: ProducerId,
producer_name: ProducerName,
receiver: ProducerReceiver
) -> bool
[src]
&mut self,
producer_id: ProducerId,
producer_name: ProducerName,
receiver: ProducerReceiver
) -> bool
pub fn del_producer(&mut self, producer_id: ProducerId) -> bool
[src]
pub fn get_producer(
&self,
producer_id: ProducerId
) -> Option<(&ProducerName, &ProducerReceiver)>
[src]
&self,
producer_id: ProducerId
) -> Option<(&ProducerName, &ProducerReceiver)>
pub fn add_consumer(
&mut self,
consumer_id: ConsumerId,
receiver: ConsumerReceiver
) -> bool
[src]
&mut self,
consumer_id: ConsumerId,
receiver: ConsumerReceiver
) -> bool
pub fn del_consumer(&mut self, consumer_id: ConsumerId) -> bool
[src]
pub fn get_consumer(&self, consumer_id: ConsumerId) -> Option<&ConsumerReceiver>
[src]
pub fn items(&self) -> Vec<HandlerChannelStorageItem<'_>>
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HandlerChannelStorage
[src]
impl Send for HandlerChannelStorage
[src]
impl Sync for HandlerChannelStorage
[src]
impl Unpin for HandlerChannelStorage
[src]
impl UnwindSafe for HandlerChannelStorage
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,