[−][src]Struct futures::channel::oneshot::Sender
A means of transmitting a single value to another task.
This is created by the channel
function.
Methods
impl<T> Sender<T>
[src][−]
pub fn send(self, t: T) -> Result<(), T>
[src][+]
pub fn poll_cancel(&mut self, cx: &mut Context) -> Poll<()>
[src][+]
pub fn is_canceled(&self) -> bool
[src][+]
Trait Implementations
impl<T> Unpin for Sender<T>
[src]
impl<T> Drop for Sender<T>
[src][+]
impl<T> Debug for Sender<T> where
T: Debug,
[src][+]
T: Debug,
Auto Trait Implementations
Blanket Implementations
impl<T> From for T
[src][+]
impl<T, U> Into for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T> Borrow for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,