Trait tsukuyomi::Extractor

source ·
pub trait Extractor {
    type Output: Tuple;
    type Error: Into<Error>;
    type Extract: TryFuture<Ok = Self::Output, Error = Self::Error>;

    fn extract(&self) -> Self::Extract;
}
Expand description

A trait abstracting the extraction of values from the incoming request.

Required Associated Types

The type of output value extracted by Extract.

The error type that may be returned from Extract.

The type representing an asynchronous task to extract the value.

Required Methods

Creates an instance of Extract.

Note that the actual extraction process is started when the value of Extract is polled.

Implementations on Foreign Types

Implementors