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
sourceimpl<'ch, T> DynamicReceiver<'ch, T>
impl<'ch, T> DynamicReceiver<'ch, T>
sourcepub fn recv(&self) -> DynamicRecvFuture<'_, T>ⓘNotable traits for DynamicRecvFuture<'ch, T>impl<'ch, T> Future for DynamicRecvFuture<'ch, T> type Output = T;
pub fn recv(&self) -> DynamicRecvFuture<'_, T>ⓘNotable traits for DynamicRecvFuture<'ch, T>impl<'ch, T> Future for DynamicRecvFuture<'ch, T> type Output = 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.
Trait Implementations
sourceimpl<'ch, T> Clone for DynamicReceiver<'ch, T>
impl<'ch, T> Clone for DynamicReceiver<'ch, T>
sourceimpl<'ch, M, T, const N: usize> From<Receiver<'ch, M, T, N>> for DynamicReceiver<'ch, T>where
M: RawMutex,
impl<'ch, M, T, const N: usize> From<Receiver<'ch, M, T, N>> for DynamicReceiver<'ch, T>where
M: RawMutex,
impl<'ch, T: Copy> Copy for DynamicReceiver<'ch, T>
Auto Trait Implementations
impl<'ch, T> !RefUnwindSafe for DynamicReceiver<'ch, T>
impl<'ch, T> !Send for DynamicReceiver<'ch, T>
impl<'ch, T> !Sync for DynamicReceiver<'ch, T>
impl<'ch, T> Unpin for DynamicReceiver<'ch, T>
impl<'ch, T> !UnwindSafe for DynamicReceiver<'ch, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more