pub struct Subscriber { /* private fields */ }
Expand description
A subscriber for Message
s published to subscribed topics.
Implementations§
Source§impl Subscriber
impl Subscriber
Sourcepub 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
.
Sourcepub fn unsubscribe_from_raw(&self, topic: &[u8])
pub fn unsubscribe_from_raw(&self, topic: &[u8])
Unsubscribe from Message
s published to topic
.
Trait Implementations§
Source§impl Clone for Subscriber
impl Clone for Subscriber
Source§fn clone(&self) -> Subscriber
fn clone(&self) -> Subscriber
Returns a duplicate 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 Freeze for Subscriber
impl !RefUnwindSafe for Subscriber
impl Send for Subscriber
impl Sync for Subscriber
impl Unpin for Subscriber
impl !UnwindSafe for Subscriber
Blanket Implementations§
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