Struct bonsaidb::local::Subscriber
pub struct Subscriber { /* private fields */ }
Expand description
A subscriber for PubSub
messages.
Implementations§
§impl Subscriber
impl Subscriber
Trait Implementations§
§impl AsyncSubscriber for Subscriber
impl AsyncSubscriber for Subscriber
§fn subscribe_to_bytes<'life0, 'async_trait>(
&'life0 self,
topic: Vec<u8, Global>
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
Subscriber: 'async_trait,
fn subscribe_to_bytes<'life0, 'async_trait>( &'life0 self, topic: Vec<u8, Global> ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, Subscriber: 'async_trait,
Subscribe to
Message
s published to topic
.§fn unsubscribe_from_bytes<'life0, 'life1, 'async_trait>(
&'life0 self,
topic: &'life1 [u8]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>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, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Subscriber: 'async_trait,
Unsubscribe from
Message
s published to topic
.§fn subscribe_to<'life0, 'life1, 'async_trait, Topic>(
&'life0 self,
topic: &'life1 Topic
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Topic: 'async_trait + Serialize + Send + Sync,
Self: '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, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Topic: 'async_trait + Serialize + Send + Sync, Self: 'async_trait,
Subscribe to
Message
s published to topic
.§fn unsubscribe_from<'life0, 'life1, 'async_trait, Topic>(
&'life0 self,
topic: &'life1 Topic
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
Topic: 'async_trait + Serialize + Send + Sync,
Self: 'async_trait,
fn unsubscribe_from<'life0, 'life1, 'async_trait, Topic>( &'life0 self, topic: &'life1 Topic ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, Topic: 'async_trait + Serialize + Send + Sync, Self: 'async_trait,
Unsubscribe from
Message
s published to topic
.§impl Clone for Subscriber
impl Clone for Subscriber
§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 more§impl Debug for Subscriber
impl Debug for Subscriber
§impl Subscriber for Subscriber
impl Subscriber for Subscriber
§fn subscribe_to_bytes(&self, topic: Vec<u8, Global>) -> Result<(), Error>
fn subscribe_to_bytes(&self, topic: Vec<u8, Global>) -> Result<(), Error>
Subscribe to
Message
s published to topic
.§fn unsubscribe_from_bytes(&self, topic: &[u8]) -> Result<(), Error>
fn unsubscribe_from_bytes(&self, topic: &[u8]) -> Result<(), Error>
Unsubscribe from
Message
s 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