Struct finchers_ext::Or
[−]
[src]
pub struct Or<E1, E2> { /* fields omitted */ }
Trait Implementations
impl<E1: Debug, E2: Debug> Debug for Or<E1, E2>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E1: Copy, E2: Copy> Copy for Or<E1, E2>
[src]
impl<E1: Clone, E2: Clone> Clone for Or<E1, E2>
[src]
fn clone(&self) -> Or<E1, E2>
[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<E1, E2> Endpoint for Or<E1, E2> where
E1: Endpoint,
E2: Endpoint<Output = E1::Output>,
[src]
E1: Endpoint,
E2: Endpoint<Output = E1::Output>,
type Output = E1::Output
The inner type associated with this endpoint.
type Task = Either<E1::Task, E2::Task>
The type of value which will be returned from apply
.
fn apply(&self, cx2: &mut Context) -> Option<Self::Task>
[src]
Perform checking the incoming HTTP request and returns an instance of the associated task if matched. Read more
fn apply_request(
&self,
input: &Input,
body: RequestBody
) -> ApplyRequest<Self::Task>
[src]
&self,
input: &Input,
body: RequestBody
) -> ApplyRequest<Self::Task>
Create an asyncrhonous computation from a request.