pub struct Lift<E> { /* private fields */ }
Trait Implementations§
Source§impl<E> Endpoint for Lift<E>where
E: Endpoint,
impl<E> Endpoint for Lift<E>where
E: Endpoint,
Source§type Task = LiftTask<<E as Endpoint>::Task>
type Task = LiftTask<<E as Endpoint>::Task>
The type of value which will be returned from
apply
.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<E: Copy> Copy for Lift<E>
Auto Trait Implementations§
impl<E> Freeze for Lift<E>where
E: Freeze,
impl<E> RefUnwindSafe for Lift<E>where
E: RefUnwindSafe,
impl<E> Send for Lift<E>where
E: Send,
impl<E> Sync for Lift<E>where
E: Sync,
impl<E> Unpin for Lift<E>where
E: Unpin,
impl<E> UnwindSafe for Lift<E>where
E: 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<E, T> EndpointOptionExt<T> for E
impl<E, T> EndpointOptionExt<T> for E
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