Struct finchers::endpoint::query::QueryOpt
[−]
[src]
pub struct QueryOpt<T, E>(_, _);
Trait Implementations
impl<T: Debug, E: Debug> Debug for QueryOpt<T, E>
[src]
impl<T, E> Clone for QueryOpt<T, E>
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<T, E> Copy for QueryOpt<T, E>
[src]
impl<T: FromStr, E> Endpoint for QueryOpt<T, E>
[src]
type Item = Option<T>
The type of resolved value, created by this endpoint
type Error = E
type Future = FutureResult<Self::Item, Self::Error>
The type of future created by this endpoint
fn apply(self, ctx: &mut Context) -> EndpointResult<Self::Future>
[src]
Apply the incoming HTTP request, and return the future of its response
fn join<E>(self, e: E) -> (Self, E) where
Self: Sized,
E: Endpoint<Error = Self::Error>,
[src]
Self: Sized,
E: Endpoint<Error = Self::Error>,
Combine itself and the other endpoint, and create a combinator which returns a pair of its Item
s. Read more
fn join3<E1, E2>(self, e1: E1, e2: E2) -> (Self, E1, E2) where
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
[src]
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
Combine itself and two other endpoints, and create a combinator which returns a tuple of its Item
s. Read more
fn join4<E1, E2, E3>(self, e1: E1, e2: E2, e3: E3) -> (Self, E1, E2, E3) where
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
E3: Endpoint<Error = Self::Error>,
[src]
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
E3: Endpoint<Error = Self::Error>,
Combine itself and three other endpoints, and create a combinator which returns a tuple of its Item
s. Read more
fn join5<E1, E2, E3, E4>(
self,
e1: E1,
e2: E2,
e3: E3,
e4: E4
) -> (Self, E1, E2, E3, E4) where
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
E3: Endpoint<Error = Self::Error>,
E4: Endpoint<Error = Self::Error>,
[src]
self,
e1: E1,
e2: E2,
e3: E3,
e4: E4
) -> (Self, E1, E2, E3, E4) where
Self: Sized,
E1: Endpoint<Error = Self::Error>,
E2: Endpoint<Error = Self::Error>,
E3: Endpoint<Error = Self::Error>,
E4: Endpoint<Error = Self::Error>,
Combine itself and four other endpoints, and create a combinator which returns a tuple of its Item
s. Read more
fn with<E>(self, e: E) -> With<Self, E> where
Self: Sized,
E: Endpoint<Error = Self::Error>,
[src]
Self: Sized,
E: Endpoint<Error = Self::Error>,
Combine itself and the other endpoint, and create a combinator which returns E::Item
.
fn skip<E>(self, e: E) -> Skip<Self, E> where
Self: Sized,
E: Endpoint<Error = Self::Error>,
[src]
Self: Sized,
E: Endpoint<Error = Self::Error>,
Combine itself and the other endpoint, and create a combinator which returns Self::Item
.
fn or<E>(self, e: E) -> Or<Self, E> where
Self: Sized,
E: Endpoint<Item = Self::Item, Error = Self::Error>,
[src]
Self: Sized,
E: Endpoint<Item = Self::Item, Error = Self::Error>,
Create an endpoint which attempts to apply self
. If self
failes, then revert the context and retry applying e
. Read more
fn map<F, U>(self, f: F) -> Map<Self, F> where
Self: Sized,
F: FnOnce(Self::Item) -> U,
[src]
Self: Sized,
F: FnOnce(Self::Item) -> U,
Combine itself and a function to change the return value to another type.
fn map_err<F, U>(self, f: F) -> MapErr<Self, F> where
Self: Sized,
F: FnOnce(Self::Error) -> U,
[src]
Self: Sized,
F: FnOnce(Self::Error) -> U,
Combine itself and a function to change the error value to another type.
fn and_then<F, Fut>(self, f: F) -> AndThen<Self, F> where
Self: Sized,
F: FnOnce(Self::Item) -> Fut,
Fut: IntoFuture<Error = Self::Error>,
[src]
Self: Sized,
F: FnOnce(Self::Item) -> Fut,
Fut: IntoFuture<Error = Self::Error>,
fn or_else<F, Fut>(self, f: F) -> OrElse<Self, F> where
Self: Sized,
F: FnOnce(Self::Error) -> Fut,
Fut: IntoFuture<Item = Self::Item>,
[src]
Self: Sized,
F: FnOnce(Self::Error) -> Fut,
Fut: IntoFuture<Item = Self::Item>,
fn then<F, Fut>(self, f: F) -> Then<Self, F> where
Self: Sized,
F: FnOnce(Result<Self::Item, Self::Error>) -> Fut,
Fut: IntoFuture,
[src]
Self: Sized,
F: FnOnce(Result<Self::Item, Self::Error>) -> Fut,
Fut: IntoFuture,
fn from_err<T>(self) -> FromErr<Self, T> where
Self: Sized,
T: From<Self::Error>,
[src]
Self: Sized,
T: From<Self::Error>,
fn inspect<F>(self, f: F) -> Inspect<Self, F> where
Self: Sized,
F: FnOnce(&Self::Item),
[src]
Self: Sized,
F: FnOnce(&Self::Item),
fn with_type<T, E>(self) -> Self where
Self: Sized + Endpoint<Item = T, Error = E>,
[src]
Self: Sized + Endpoint<Item = T, Error = E>,