pub struct Sender<'a, M: RawMutex, T> { /* private fields */ }Expand description
Send-only access to a Channel.
Implementations§
Source§impl<'a, M: RawMutex, T> Sender<'a, M, T>
impl<'a, M: RawMutex, T> Sender<'a, M, T>
Sourcepub fn poll_send(&mut self, cx: &mut Context<'_>) -> Poll<&mut T>
pub fn poll_send(&mut self, cx: &mut Context<'_>) -> Poll<&mut T>
Attempts to send a value over the channel.
Sourcepub fn send(&mut self) -> impl Future<Output = &mut T>
pub fn send(&mut self) -> impl Future<Output = &mut T>
Asynchronously send a value over the channel.