Struct bonsaidb::client::AsyncRemoteSubscriber
pub struct AsyncRemoteSubscriber { /* private fields */ }
Expand description
A PubSub
subscriber from a remote server.
Trait Implementations§
§impl AsyncSubscriber for AsyncRemoteSubscriber
impl AsyncSubscriber for AsyncRemoteSubscriber
§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,
AsyncRemoteSubscriber: '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, AsyncRemoteSubscriber: '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,
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, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, AsyncRemoteSubscriber: '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 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