Trait tsukuyomi::Extractor

source ·
pub trait Extractor: Send + Sync + 'static {
    type Output: Tuple;
    type Error: Into<Error>;
    type Future: Future<Item = Self::Output, Error = Self::Error> + Send + 'static;

    fn extract(&self, input: &mut Input<'_>) -> Extract<Self>;

    fn into_builder(self) -> Builder<Self>
    where
        Self: Sized
, { ... } }
Expand description

A trait abstracting the extraction of values from Input.

Required Associated Types

The type of output value from this extractor.

The error type which will be returned from this extractor.

The type representing asyncrhonous computations performed during extraction.

Required Methods

Performs extraction from the specified Input.

Provided Methods

Implementations on Foreign Types

Implementors