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]

[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.

[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.

[src]

Tests to see whether this Sender's corresponding Receiver has gone away.

Trait Implementations

impl<T, E> Drop for Sender<T, E>
[src]

[src]

Executes the destructor for this type. Read more