Struct futures::channel::oneshot::Receiver [] [src]

#[must_use = "futures do nothing unless polled"]
pub struct Receiver<T> { /* fields omitted */ }

A future for a value that will be provided by another asynchronous task.

This is created by the channel function.

Methods

impl<T> Receiver<T>
[src]

[src]

Gracefully close this receiver, preventing any subsequent attempts to send to it.

Any send operation which happens after this method returns is guaranteed to fail. After calling this method, you can use Receiver::poll to determine whether a message had previously been sent.

Trait Implementations

impl<T> Drop for Receiver<T>
[src]

[src]

Executes the destructor for this type. Read more

impl<T> Debug for Receiver<T> where
    T: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> Future for Receiver<T>
[src]

A successful value

An error

[src]

Attempt to resolve the future to a final value, registering the current task for wakeup if the value is not yet available. Read more

Auto Trait Implementations

impl<T> Send for Receiver<T> where
    T: Send

impl<T> Sync for Receiver<T> where
    T: Send