pub struct ReceiveSlot<'a, M: RawMutex, T> { /* private fields */ }Expand description
A slot for receiving in the channel.
The slot is only marked as received when ReceiveSlot::receive_done is called.
Implementations§
Source§impl<M: RawMutex, T> ReceiveSlot<'_, M, T>
impl<M: RawMutex, T> ReceiveSlot<'_, M, T>
Sourcepub fn receive_done(self)
pub fn receive_done(self)
Notify the channel that the receiving of the value has been finalized.
Trait Implementations§
Source§impl<M: RawMutex, T> Deref for ReceiveSlot<'_, M, T>
impl<M: RawMutex, T> Deref for ReceiveSlot<'_, M, T>
Auto Trait Implementations§
impl<'a, M, T> Freeze for ReceiveSlot<'a, M, T>
impl<'a, M, T> !RefUnwindSafe for ReceiveSlot<'a, M, T>
impl<'a, M, T> Send for ReceiveSlot<'a, M, T>
impl<'a, M, T> Sync for ReceiveSlot<'a, M, T>
impl<'a, M, T> Unpin for ReceiveSlot<'a, M, T>
impl<'a, M, T> !UnwindSafe for ReceiveSlot<'a, M, T>
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