Struct finchers_ext::result::OrElse
[−]
[src]
pub struct OrElse<E, F> { /* fields omitted */ }
Trait Implementations
impl<E: Debug, F: Debug> Debug for OrElse<E, F>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<E: Copy, F: Copy> Copy for OrElse<E, F>
[src]
impl<E: Clone, F: Clone> Clone for OrElse<E, F>
[src]
fn clone(&self) -> OrElse<E, F>
[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<E, F, A, B, U> Endpoint for OrElse<E, F> where
E: Endpoint<Output = Result<A, B>>,
F: FnOnce(B) -> Result<A, U> + Clone + Send + Sync,
[src]
E: Endpoint<Output = Result<A, B>>,
F: FnOnce(B) -> Result<A, U> + Clone + Send + Sync,
type Output = Result<A, U>
The inner type associated with this endpoint.
type Task = OrElseTask<E::Task, F>
The type of value which will be returned from apply
.
fn apply(&self, cx: &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.