pub struct hello;Trait Implementations§
Auto Trait Implementations§
impl Freeze for hello
impl RefUnwindSafe for hello
impl Send for hello
impl Sync for hello
impl Unpin for hello
impl UnwindSafe for hello
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> EndpointExt for Twhere
T: IntoEndpoint,
impl<T> EndpointExt for Twhere
T: IntoEndpoint,
Source§fn boxed<'a>(
self,
) -> Box<dyn DynEndpoint<Output = <Self::Endpoint as Endpoint>::Output> + 'a>where
Self: Sized + 'a,
fn boxed<'a>(
self,
) -> Box<dyn DynEndpoint<Output = <Self::Endpoint as Endpoint>::Output> + 'a>where
Self: Sized + 'a,
Wrap the endpoint in a Box.
Source§fn with<T>(self, middleware: T) -> <T as Middleware<Self::Endpoint>>::Output
fn with<T>(self, middleware: T) -> <T as Middleware<Self::Endpoint>>::Output
Use middleware to transform this endpoint. Read more
Source§fn with_if<T>(
self,
enable: bool,
middleware: T,
) -> EitherEndpoint<Self, <T as Middleware<Self::Endpoint>>::Output>
fn with_if<T>( self, enable: bool, middleware: T, ) -> EitherEndpoint<Self, <T as Middleware<Self::Endpoint>>::Output>
Source§fn data<T>(self, data: T) -> AddDataEndpoint<Self::Endpoint, T>
fn data<T>(self, data: T) -> AddDataEndpoint<Self::Endpoint, T>
Attach a state data to the endpoint, similar to
with(AddData(T)). Read moreSource§fn data_opt<T>(
self,
data: Option<T>,
) -> EitherEndpoint<AddDataEndpoint<Self::Endpoint, T>, Self>
fn data_opt<T>( self, data: Option<T>, ) -> EitherEndpoint<AddDataEndpoint<Self::Endpoint, T>, Self>
if
data is Some(T) then attach the value to the endpoint.Source§fn after<F, Fut, T>(self, f: F) -> After<Self::Endpoint, F>
fn after<F, Fut, T>(self, f: F) -> After<Self::Endpoint, F>
Maps the output of this endpoint. Read more
Source§fn around<F, Fut, R>(self, f: F) -> Around<Self::Endpoint, F>
fn around<F, Fut, R>(self, f: F) -> Around<Self::Endpoint, F>
Maps the request and response of this endpoint. Read more
Source§fn map_to_response(self) -> MapToResponse<Self::Endpoint>where
Self: Sized,
fn map_to_response(self) -> MapToResponse<Self::Endpoint>where
Self: Sized,
Source§fn to_response(self) -> ToResponse<Self::Endpoint>where
Self: Sized,
fn to_response(self) -> ToResponse<Self::Endpoint>where
Self: Sized,
Source§fn map<F, Fut, R, R2>(self, f: F) -> Map<Self::Endpoint, F>
fn map<F, Fut, R, R2>(self, f: F) -> Map<Self::Endpoint, F>
Maps the response of this endpoint. Read more
Source§fn catch_all_error<F, Fut, R>(self, f: F) -> CatchAllError<Self, F, R>
fn catch_all_error<F, Fut, R>(self, f: F) -> CatchAllError<Self, F, R>
Catch all errors and convert it into a response. Read more
Source§fn catch_error<F, Fut, R, ErrType>(
self,
f: F,
) -> CatchError<Self, F, R, ErrType>
fn catch_error<F, Fut, R, ErrType>( self, f: F, ) -> CatchError<Self, F, R, ErrType>
Catch the specified type of error and convert it into a response. Read more
Source§fn inspect_all_err<F>(self, f: F) -> InspectAllError<Self, F>
fn inspect_all_err<F>(self, f: F) -> InspectAllError<Self, F>
Does something with each error. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoEndpoint for Twhere
T: Endpoint,
impl<T> IntoEndpoint for Twhere
T: Endpoint,
Source§fn into_endpoint(self) -> <T as IntoEndpoint>::Endpoint
fn into_endpoint(self) -> <T as IntoEndpoint>::Endpoint
Converts this object into endpoint.