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.
Auto Trait Implementations§
impl<'a, M, T> !RefUnwindSafe for Receiver<'a, M, T>
impl<'a, M, T> !Send for Receiver<'a, M, T>
impl<'a, M, T> !Sync for Receiver<'a, M, T>
impl<'a, M, T> Unpin for Receiver<'a, M, T>
impl<'a, M, T> !UnwindSafe for Receiver<'a, M, T>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more