Trait thrussh::FromFinished
[−]
[src]
pub trait FromFinished<T, E>: Future<Item=T, Error=E> { 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
.
Implementors
impl<T, E> FromFinished<T, E> for Finished<T, E>