Struct embassy_sync::channel::DynamicReceiver
source · pub struct DynamicReceiver<'ch, T> { /* private fields */ }Expand description
Receive-only access to a Channel without knowing channel size.
Implementations§
source§impl<'ch, T> DynamicReceiver<'ch, T>
impl<'ch, T> DynamicReceiver<'ch, T>
sourcepub fn recv(&self) -> DynamicRecvFuture<'_, T> ⓘ
pub fn recv(&self) -> DynamicRecvFuture<'_, T> ⓘ
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.