Trait thrussh::FromFinished

source ·
pub trait FromFinished<T>: Future<Output = Result<T, Error>> {
    // Required method
    fn finished(t: T) -> Self;
}
Expand description

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

Required Methods§

source

fn finished(t: T) -> Self

Turns type T into Self, a future yielding T.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl<T> FromFinished<T> for Ready<Result<T, Error>>

source§

fn finished(t: T) -> Self

source§

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

source§

fn finished(t: T) -> Self

Implementors§