pub struct ReceiveGuard<'a, M, P>{ /* private fields */ }
Expand description
Wraps a Message, when dropped and the queue is empty it sends a final ‘Drained’ message to notify that there is no further work in progress.
Implementations§
Source§impl<'a, M, P> ReceiveGuard<'a, M, P>
impl<'a, M, P> ReceiveGuard<'a, M, P>
Trait Implementations§
Source§impl<'a, M, P> Debug for ReceiveGuard<'a, M, P>
impl<'a, M, P> Debug for ReceiveGuard<'a, M, P>
Auto Trait Implementations§
impl<'a, M, P> Freeze for ReceiveGuard<'a, M, P>
impl<'a, M, P> !RefUnwindSafe for ReceiveGuard<'a, M, P>
impl<'a, M, P> Send for ReceiveGuard<'a, M, P>where
P: Send,
impl<'a, M, P> Sync for ReceiveGuard<'a, M, P>
impl<'a, M, P> Unpin for ReceiveGuard<'a, M, P>
impl<'a, M, P> !UnwindSafe for ReceiveGuard<'a, M, P>
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