Struct embassy_sync::zerocopy_channel::Receiver
source · pub struct Receiver<'a, M: RawMutex, T> { /* private fields */ }
Expand description
Receive-only access to a Channel
.
Implementations§
source§impl<'a, M: RawMutex, T> Receiver<'a, M, T>
impl<'a, M: RawMutex, T> Receiver<'a, M, T>
sourcepub fn borrow(&mut self) -> Receiver<'_, M, T>
pub fn borrow(&mut self) -> Receiver<'_, M, T>
Creates one further Sender
over the same channel.
sourcepub fn try_receive(&mut self) -> Option<&mut T>
pub fn try_receive(&mut self) -> Option<&mut T>
Attempts to receive a value over the channel.
sourcepub fn poll_receive(&mut self, cx: &mut Context<'_>) -> Poll<&mut T>
pub fn poll_receive(&mut self, cx: &mut Context<'_>) -> Poll<&mut T>
Attempts to asynchronously receive a value over the channel.
sourcepub fn receive_done(&mut self)
pub fn receive_done(&mut self)
Notify the channel that the receiving of the value has been finalized.