Trait finchers_ext::EndpointExt [] [src]

pub trait EndpointExt: Endpoint + Sized {
    fn as_t<T>(self) -> Self
    where
        Self: Endpoint<Output = T>
, { ... }
fn and<E>(self, e: E) -> And<Self, E::Endpoint>
    where
        E: IntoEndpoint,
        Self::Output: Send,
        E::Output: Send
, { ... }
fn left<E>(self, e: E) -> Left<Self, E::Endpoint>
    where
        E: IntoEndpoint
, { ... }
fn right<E>(self, e: E) -> Right<Self, E::Endpoint>
    where
        E: IntoEndpoint
, { ... }
fn or<E>(self, e: E) -> Or<Self, E::Endpoint>
    where
        E: IntoEndpoint<Output = Self::Output>
, { ... }
fn lift(self) -> Lift<Self> { ... }
fn map<F, U>(self, f: F) -> Map<Self, F>
    where
        F: FnOnce(Self::Output) -> U + Clone + Send + Sync
, { ... }
fn inspect<F>(self, f: F) -> Inspect<Self, F>
    where
        F: FnOnce(&Self::Output) + Clone + Send + Sync
, { ... }
fn map_async<F, T>(self, f: F) -> MapAsync<Self, F>
    where
        F: FnOnce(Self::Output) -> T + Clone + Send + Sync,
        T: IntoTask,
        T::Task: Send
, { ... } }

A set of extension methods used for composing complicate endpoints.

Provided Methods

Annotate that the associated type Output is equal to T.

Create an endpoint which evaluates self and e and returns a pair of their tasks.

The returned future from this endpoint contains both futures from self and e and resolved as a pair of values returned from theirs.

Create an endpoint which evaluates self and e and returns the task of self if matched.

Create an endpoint which evaluates self and e and returns the task of e if matched.

Create an endpoint which evaluates self and e sequentially.

The returned future from this endpoint contains the one returned from either self or e matched "better" to the input.

Create an endpoint which returns None if the inner endpoint skips the request.

Create an endpoint which maps the returned value to a different type.

Create an endpoint which do something with the output value from self.

Create an endpoint which continue an asynchronous computation from the value returned from self.

Implementors