Struct embassy_sync::channel::Receiver
source · pub struct Receiver<'ch, M, T, const N: usize>where
M: RawMutex,{ /* private fields */ }
Expand description
Receive-only access to a Channel
.
Implementations§
source§impl<'ch, M, T, const N: usize> Receiver<'ch, M, T, N>where
M: RawMutex,
impl<'ch, M, T, const N: usize> Receiver<'ch, M, T, N>where M: RawMutex,
sourcepub fn recv(&self) -> RecvFuture<'_, M, T, N> ⓘ
pub fn recv(&self) -> RecvFuture<'_, M, T, N> ⓘ
Receive the next value.
See Channel::recv()
.
sourcepub fn try_recv(&self) -> Result<T, TryRecvError>
pub fn try_recv(&self) -> Result<T, TryRecvError>
Attempt to immediately receive the next value.