tokio::net::addrType Alias ReadyFuture
Source type ReadyFuture<T> = Ready<Result<T>>;
struct ReadyFuture<T>();
Implementations
Consumes the Ready
, returning the wrapped value.
§Panics
Will panic if this Ready
was already polled to completion.
§Examples
use std::future;
let a = future::ready(1);
assert_eq!(a.into_inner(), 1);
Trait Implementations
Performs copy-assignment from
source
.
Read more
Formats the value using the given formatter.
Read more
The type of value produced on completion.
Attempts to resolve the future to a final value, registering
the current task for wakeup if the value is not yet available.
Read more