Struct pulsar_binary_protocol_spec::client_channel::handler_channel_storage::HandlerChannelStorage[][src]

pub struct HandlerChannelStorage(_);

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]

pub fn del_producer(&mut self, producer_id: ProducerId) -> bool[src]

pub fn get_producer(
    &self,
    producer_id: ProducerId
) -> Option<(&ProducerName, &ProducerReceiver)>
[src]

pub fn add_consumer(
    &mut self,
    consumer_id: ConsumerId,
    receiver: ConsumerReceiver
) -> bool
[src]

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

impl Debug for HandlerChannelStorage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.