pub struct Inspect<E, F> { /* private fields */ }
Trait Implementations§
Source§impl<E, F> Endpoint for Inspect<E, F>
impl<E, F> Endpoint for Inspect<E, F>
Source§type Task = InspectTask<<E as Endpoint>::Task, F>
type Task = InspectTask<<E as Endpoint>::Task, F>
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, F: Copy> Copy for Inspect<E, F>
Auto Trait Implementations§
impl<E, F> Freeze for Inspect<E, F>
impl<E, F> RefUnwindSafe for Inspect<E, F>where
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<E, F> Send for Inspect<E, F>
impl<E, F> Sync for Inspect<E, F>
impl<E, F> Unpin for Inspect<E, F>
impl<E, F> UnwindSafe for Inspect<E, F>where
E: UnwindSafe,
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<E, T> EndpointOptionExt<T> for E
impl<E, T> EndpointOptionExt<T> for E
Source§impl<E, A, B> EndpointResultExt<A, B> for E
impl<E, A, B> EndpointResultExt<A, B> for E
Source§fn as_ok<T>(self) -> Self
fn as_ok<T>(self) -> Self
Annotate that the successful type of associated type
Output
is equal to T
.Source§fn as_err<E>(self) -> Self
fn as_err<E>(self) -> Self
Annotate that the error type of associated type
Output
is equal to E
.Source§fn map_ok<F, U>(self, f: F) -> MapOk<Self, F>
fn map_ok<F, U>(self, f: F) -> MapOk<Self, F>
Create an endpoint which will map the successful value to a new type with given function.
Source§fn map_err<F, U>(self, f: F) -> MapErr<Self, F>
fn map_err<F, U>(self, f: F) -> MapErr<Self, F>
Create an endpoint which will map the error value to a new type with given function.
Source§fn err_into<U>(self) -> ErrInto<Self, U>where
B: Into<U>,
fn err_into<U>(self) -> ErrInto<Self, U>where
B: Into<U>,
Create an endpoint which will convert the error value to a new type.
Source§fn and_then<F, U>(self, f: F) -> AndThen<Self, F>
fn and_then<F, U>(self, f: F) -> AndThen<Self, F>
Create an endpoint which will map the successful value to a
Result
with given function.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