pub struct MultiSubscription<M> { /* private fields */ }
Expand description
A structure that represents a subscription to the given topic
Implementations§
Source§impl<M> MultiSubscription<M>where
M: DeserializeOwned,
impl<M> MultiSubscription<M>where
M: DeserializeOwned,
Sourcepub async fn recv(&mut self) -> Result<M, MultiSubRxError>
pub async fn recv(&mut self) -> Result<M, MultiSubRxError>
Await a message for the given subscription.
Returns None` if the subscription was closed
Auto Trait Implementations§
impl<M> Freeze for MultiSubscription<M>
impl<M> RefUnwindSafe for MultiSubscription<M>where
M: RefUnwindSafe,
impl<M> Send for MultiSubscription<M>where
M: Send,
impl<M> Sync for MultiSubscription<M>where
M: Sync,
impl<M> Unpin for MultiSubscription<M>where
M: Unpin,
impl<M> UnwindSafe for MultiSubscription<M>where
M: UnwindSafe,
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