Struct bonsaidb::core::circulate::Subscriber
pub struct Subscriber { /* private fields */ }
Expand description
A subscriber for Message
s published to subscribed topics.
Implementations§
§impl Subscriber
impl Subscriber
pub fn subscribe_to_raw(&self, topic: impl Into<OwnedBytes>)
pub fn subscribe_to_raw(&self, topic: impl Into<OwnedBytes>)
Subscribe to Message
s published to topic
.
pub fn unsubscribe_from_raw(&self, topic: &[u8])
pub fn unsubscribe_from_raw(&self, topic: &[u8])
Unsubscribe from Message
s published to topic
.
Trait Implementations§
§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 moreAuto 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