[][src]Trait thrussh::FromFinished

pub trait FromFinished<T>: Future<Output = Result<T, Error>> {
    fn finished(t: T) -> Self;
}

Since handlers are large, their associated future types must implement this trait to provide reasonable default implementations (basically, rejecting all requests).

Required methods

fn finished(t: T) -> Self

Turns type T into Self, a future yielding T.

Loading content...

Implementations on Foreign Types

impl<T> FromFinished<T> for Ready<Result<T, Error>>[src]

impl<T: 'static> FromFinished<T> for Box<dyn Future<Output = Result<T, Error>> + Unpin>[src]

Loading content...

Implementors

Loading content...