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
.