Struct futures::Complete
[−]
[src]
pub struct Complete<T> where T: Send + 'static {
// some fields omitted
}
Represents the completion half of a promise through which the result of a computation is signaled.
This is created by the promise
function.
Methods
impl<T> Complete<T> where T: Send + 'static
[src]
fn complete(self, t: T)
Completes this promise with a successful result.
This function will consume self
and indicate to the other end, the
Promise
, that the error provided is the result of the computation this
represents.