pub struct SenderRef<'a, T> { /* private fields */ }
Expand description
A borrowing handle for sending an element through a split
OneshotChannel
.
Implementations§
Source§impl<'a, T> SenderRef<'a, T>
impl<'a, T> SenderRef<'a, T>
Sourcepub fn poll_closed(&mut self, cx: &mut Context<'_>) -> Poll<()>
pub fn poll_closed(&mut self, cx: &mut Context<'_>) -> Poll<()>
Polls the channel, resolving if the channel has been closed.