Struct bonsaidb::local::Subscriber
source · pub struct Subscriber { /* private fields */ }Expand description
A subscriber for PubSub messages.
Implementations§
Trait Implementations§
source§impl AsyncSubscriber for Subscriber
impl AsyncSubscriber for Subscriber
source§fn subscribe_to_bytes<'life0, 'async_trait>(
&'life0 self,
topic: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Subscriber: 'async_trait,
fn subscribe_to_bytes<'life0, 'async_trait>(
&'life0 self,
topic: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Subscriber: 'async_trait,
Subscribe to
Messages published to topic.source§fn unsubscribe_from_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Subscriber: 'async_trait,
fn unsubscribe_from_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Subscriber: 'async_trait,
Unsubscribe from
Messages published to topic.source§fn subscribe_to<'life0, 'life1, 'async_trait, Topic>(
&'life0 self,
topic: &'life1 Topic
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
fn subscribe_to<'life0, 'life1, 'async_trait, Topic>( &'life0 self, topic: &'life1 Topic ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
Subscribe to
Messages published to topic.source§impl Clone for Subscriber
impl Clone for Subscriber
source§fn clone(&self) -> Subscriber
fn clone(&self) -> Subscriber
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for Subscriber
impl Debug for Subscriber
source§impl Drop for Subscriber
impl Drop for Subscriber
source§impl Subscriber for Subscriber
impl Subscriber for Subscriber
source§fn subscribe_to_bytes(&self, topic: Vec<u8>) -> Result<(), Error>
fn subscribe_to_bytes(&self, topic: Vec<u8>) -> Result<(), Error>
Subscribe to
Messages published to topic.source§fn unsubscribe_from_bytes(&self, topic: &[u8]) -> Result<(), Error>
fn unsubscribe_from_bytes(&self, topic: &[u8]) -> Result<(), Error>
Unsubscribe from
Messages published to topic.Auto Trait Implementations§
impl !RefUnwindSafe for Subscriber
impl Send for Subscriber
impl Sync for Subscriber
impl Unpin for Subscriber
impl !UnwindSafe for Subscriber
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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