Struct bonsaidb::client::AsyncRemoteSubscriber
source · pub struct AsyncRemoteSubscriber { /* private fields */ }
Expand description
A PubSub
subscriber from a remote server.
Trait Implementations§
source§impl AsyncSubscriber for AsyncRemoteSubscriber
impl AsyncSubscriber for AsyncRemoteSubscriber
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,
AsyncRemoteSubscriber: '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,
AsyncRemoteSubscriber: 'async_trait,
Subscribe to
Message
s 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,
AsyncRemoteSubscriber: '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,
AsyncRemoteSubscriber: 'async_trait,
Unsubscribe from
Message
s 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
Message
s published to topic
.source§impl Debug for AsyncRemoteSubscriber
impl Debug for AsyncRemoteSubscriber
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncRemoteSubscriber
impl Send for AsyncRemoteSubscriber
impl Sync for AsyncRemoteSubscriber
impl Unpin for AsyncRemoteSubscriber
impl !UnwindSafe for AsyncRemoteSubscriber
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