sync_ls

Type Alias ResponseFuture

Source
pub type ResponseFuture<T> = MaybeDone<Pin<Box<dyn Future<Output = T> + Send>>>;
Expand description

A future that may be done in place or not.

Aliased Type§

enum ResponseFuture<T> {
    Future(Pin<Box<dyn Future<Output = T> + Send>>),
    Done(T),
    Gone,
}

Variants§

§

Future(Pin<Box<dyn Future<Output = T> + Send>>)

A not-yet-completed future

§

Done(T)

The output of the completed future

§

Gone

The empty variant after the result of a [MaybeDone] has been taken using the take_output method.