pub struct Abort<F> { /* private fields */ }Trait Implementations§
Source§impl<F, E> Endpoint for Abort<F>
impl<F, E> Endpoint for Abort<F>
Source§fn apply(&self, cx: &mut Context<'_>) -> Option<Self::Task>
fn apply(&self, cx: &mut Context<'_>) -> Option<Self::Task>
Perform checking the incoming HTTP request and returns
an instance of the associated task if matched.
Source§fn apply_request(
&self,
input: &Input,
body: RequestBody,
) -> ApplyRequest<Self::Task>
fn apply_request( &self, input: &Input, body: RequestBody, ) -> ApplyRequest<Self::Task>
Create an asyncrhonous computation from a request.
impl<F: Copy> Copy for Abort<F>
Auto Trait Implementations§
impl<F> Freeze for Abort<F>where
F: Freeze,
impl<F> RefUnwindSafe for Abort<F>where
F: RefUnwindSafe,
impl<F> Send for Abort<F>where
F: Send,
impl<F> Sync for Abort<F>where
F: Sync,
impl<F> Unpin for Abort<F>where
F: Unpin,
impl<F> UnwindSafe for Abort<F>where
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<E> EndpointExt for Ewhere
E: Endpoint,
impl<E> EndpointExt for Ewhere
E: Endpoint,
Source§fn as_t<T>(self) -> Selfwhere
Self: Endpoint<Output = T>,
fn as_t<T>(self) -> Selfwhere
Self: Endpoint<Output = T>,
Annotate that the associated type
Output is equal to T.Source§fn left<E>(self, e: E) -> Left<Self, E::Endpoint>where
E: IntoEndpoint,
fn left<E>(self, e: E) -> Left<Self, E::Endpoint>where
E: IntoEndpoint,
Create an endpoint which evaluates
self and e and returns the task of self if matched.Source§fn right<E>(self, e: E) -> Right<Self, E::Endpoint>where
E: IntoEndpoint,
fn right<E>(self, e: E) -> Right<Self, E::Endpoint>where
E: IntoEndpoint,
Create an endpoint which evaluates
self and e and returns the task of e if matched.Source§fn lift(self) -> Lift<Self>
fn lift(self) -> Lift<Self>
Create an endpoint which returns
None if the inner endpoint skips the request.Source§fn map<F, U>(self, f: F) -> Map<Self, F>
fn map<F, U>(self, f: F) -> Map<Self, F>
Create an endpoint which maps the returned value to a different type.
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more