[−][src]Trait tide::Extract
An extractor for an app with Data
Associated Types
type Fut: Future<Output = Result<Self, Response>> + Send + 'static
The async result of extract
.
The Err
case represents that the endpoint should not be invoked, but
rather the given response should be returned immediately.
Required methods
fn extract(
data: &mut Data,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
data: &mut Data,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
Attempt to extract a value from the given request.
Implementors
impl<Data: 'static, T: Compute> Extract<Data> for Computed<T>
[src]
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut Data,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut Data,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S, T> Extract<S> for ExtractConfiguration<T> where
S: 'static,
T: Any + Debug + Clone + Send + Sync + 'static,
[src]
S: 'static,
T: Any + Debug + Clone + Send + Sync + 'static,
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S, T> Extract<S> for UrlQuery<T> where
T: Send + FromStr + 'static,
S: 'static,
[src]
T: Send + FromStr + 'static,
S: 'static,
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S: 'static> Extract<S> for Bytes
[src]
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S: 'static> Extract<S> for MultipartForm
[src]
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S: 'static> Extract<S> for Str
[src]
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S: 'static> Extract<S> for StrLossy
[src]
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<S: 'static> Extract<S> for Cookies
[src]
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<T: NamedSegment, S: 'static> Extract<S> for Named<T>
[src]
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<T: Clone + Send + 'static> Extract<T> for AppData<T>
[src]
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut T,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut T,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<T: Send + 'static + FromStr, S: 'static> Extract<S> for Path<T>
[src]
type Fut = Ready<Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
impl<T: Send + DeserializeOwned + 'static, S: 'static> Extract<S> for Json<T>
[src]
type Fut = FutureObj<'static, Result<Self, Response>>
fn extract(
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut
[src]
data: &mut S,
req: &mut Request,
params: &Option<RouteMatch>,
store: &Store
) -> Self::Fut