pub struct PubSubSubscription { /* private fields */ }Expand description
Live subscription receiver for one topic.
Implementations§
Source§impl PubSubSubscription
impl PubSubSubscription
Sourcepub fn new<H>(handle: H) -> Selfwhere
H: PubSubSubscriptionHandle + 'static,
pub fn new<H>(handle: H) -> Selfwhere
H: PubSubSubscriptionHandle + 'static,
Create one subscription from a custom backend receiver handle.
pub async fn recv(&mut self) -> Result<PubSubMessage, PubSubReceiveError>
Auto Trait Implementations§
impl Freeze for PubSubSubscription
impl !RefUnwindSafe for PubSubSubscription
impl Send for PubSubSubscription
impl !Sync for PubSubSubscription
impl Unpin for PubSubSubscription
impl UnsafeUnpin for PubSubSubscription
impl !UnwindSafe for PubSubSubscription
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