Struct embassy_sync::channel::Receiver
source · [−]Expand description
Receive-only access to a Channel
.
Implementations
sourceimpl<'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>ⓘNotable traits for RecvFuture<'ch, M, T, N>impl<'ch, M, T, const N: usize> Future for RecvFuture<'ch, M, T, N>where
M: RawMutex, type Output = T;
pub fn recv(&self) -> RecvFuture<'_, M, T, N>ⓘNotable traits for RecvFuture<'ch, M, T, N>impl<'ch, M, T, const N: usize> Future for RecvFuture<'ch, M, T, N>where
M: RawMutex, type Output = T;
M: RawMutex, 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, 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, M: Copy, T: Copy, const N: usize> Copy for Receiver<'ch, M, T, N>where
M: RawMutex,
Auto Trait Implementations
impl<'ch, M, T, const N: usize> !RefUnwindSafe for Receiver<'ch, M, T, N>
impl<'ch, M, T, const N: usize> Send for Receiver<'ch, M, T, N>where
M: Sync,
T: Send,
impl<'ch, M, T, const N: usize> Sync for Receiver<'ch, M, T, N>where
M: Sync,
T: Send,
impl<'ch, M, T, const N: usize> Unpin for Receiver<'ch, M, T, N>
impl<'ch, M, T, const N: usize> !UnwindSafe for Receiver<'ch, M, T, N>
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