Struct bonsaidb_client::RemoteSubscriber
source · [−]pub struct RemoteSubscriber { /* private fields */ }Expand description
A PubSub subscriber from a remote server.
Trait Implementations
sourceimpl AsyncSubscriber for RemoteSubscriber
impl AsyncSubscriber for RemoteSubscriber
sourcefn 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,
Self: '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,
Self: 'async_trait,
Subscribe to [Message]s published to topic.
sourcefn 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,
Self: '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,
Self: 'async_trait,
Unsubscribe from [Message]s published to topic.
sourcefn 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.
sourcefn 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.
sourceimpl Debug for RemoteSubscriber
impl Debug for RemoteSubscriber
sourceimpl Drop for RemoteSubscriber
impl Drop for RemoteSubscriber
sourceimpl Subscriber for RemoteSubscriber
impl Subscriber for RemoteSubscriber
sourcefn subscribe_to_bytes(&self, topic: Vec<u8>) -> Result<(), Error>
fn subscribe_to_bytes(&self, topic: Vec<u8>) -> Result<(), Error>
Subscribe to [Message]s published to topic.
sourcefn 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 RemoteSubscriber
impl Send for RemoteSubscriber
impl Sync for RemoteSubscriber
impl Unpin for RemoteSubscriber
impl !UnwindSafe for RemoteSubscriber
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more