Struct drone_core::sync::spsc::oneshot::Sender
[−]
[src]
pub struct Sender<T, E> { /* fields omitted */ }The sending-half of oneshot::channel.
Methods
impl<T, E> Sender<T, E>[src]
fn send(self, data: Result<T, E>) -> Result<(), Result<T, E>>[src]
Completes this oneshot with a result.
If the value is successfully enqueued, then Ok(()) is returned. If the
receiving end was dropped before this function was called, then Err is
returned with the value provided.
fn poll_cancel(&mut self) -> Poll<(), ()>[src]
Polls this Sender half to detect whether the Receiver this has
paired with has gone away.
Panics
Like Future::poll, this function will panic if it's not called from
within the context of a task. In other words, this should only ever be
called from inside another future.
If you're calling this function from a context that does not have a task,
then you can use the is_canceled API instead.