Struct eventual::Sender [] [src]

pub struct Sender<T: Send + 'static, E: Send + 'static> { /* fields omitted */ }

The sending half of Stream::pair(). Can only be owned by a single task at a time.

Methods

impl<T: Send + 'static, E: Send + 'static> Sender<T, E>
[src]

Attempts to send a value to its Stream. Consumes self and returns a future representing the operation completing successfully and interest in the next value being expressed.

Terminated the stream with the given error.

Fails the paired Stream with a cancellation error. This will eventually go away when carllerche/syncbox#10 lands. It is currently needed to keep the state correct (see async::sequence)

Send + 'static all the values in the given source

Trait Implementations

impl<T: Send + 'static, E: Send + 'static> Async for Sender<T, E>
[src]

Returns true if expect will succeed.

Returns true if the async value is ready and has failed

Get the underlying value if present

Invokes the given function when the Async instance is ready to be consumed. Read more

Get the underlying value if present, panic otherwise

Invoke the callback with the resolved Async result.

Blocks the thread until the async value is complete and returns the result. Read more

Trigger the computation without waiting for the result

This method returns a future whose completion value depends on the completion value of the original future. Read more

This method returns a future whose completion value depends on the completion value of the original future. Read more

This method returns a future whose completion value depends on the completion value of the original future. Read more

This method returns a future whose completion value depends on the completion value of the original future. Read more

impl<T: Send + 'static, E: Send + 'static> Drop for Sender<T, E>
[src]

A method called when the value goes out of scope. Read more

impl<T: Send + 'static, E: Send + 'static> Debug for Sender<T, E>
[src]

Formats the value using the given formatter.