pub struct Apply<S, St, Req, F, In, Out, Err> { /* private fields */ }Expand description
Apply service combinator
Trait Implementations§
Source§impl<S, St, Req, F, In, Out, Err> Debug for Apply<S, St, Req, F, In, Out, Err>where
S: Debug,
impl<S, St, Req, F, In, Out, Err> Debug for Apply<S, St, Req, F, In, Out, Err>where
S: Debug,
Source§impl<S, St, Req, F, In, Out, Err> Service<St, In> for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> Service<St, In> for Apply<S, St, Req, F, In, Out, Err>
Source§async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Err>
async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Err>
Returns when the service is ready to process requests. Read more
Source§async fn call(&self, req: In, ctx: Ctx<'_, Self, St>) -> Result<Out, Err>
async fn call(&self, req: In, ctx: Ctx<'_, Self, St>) -> Result<Out, Err>
Processes a request and asynchronously returns the response. Read more
Source§fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
fn map<F, Res>(self, f: F) -> ServiceChain<Map<F, Self, Res>, St, Req>
Maps this service’s output to a different type, returning a new service. Read more
Source§fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
fn map_err<F, E>(self, f: F) -> ServiceChain<MapErr<F, Self, E>, St, Req>
Maps this service’s error to a different type, returning a new service. Read more
Auto Trait Implementations§
impl<S, St, Req, F, In, Out, Err> Freeze for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> RefUnwindSafe for Apply<S, St, Req, F, In, Out, Err>where
S: RefUnwindSafe,
F: RefUnwindSafe,
PhantomData<fn(St, Req) -> (In, Out, Err)>: RefUnwindSafe,
impl<S, St, Req, F, In, Out, Err> Send for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> Sync for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> Unpin for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> UnsafeUnpin for Apply<S, St, Req, F, In, Out, Err>
impl<S, St, Req, F, In, Out, Err> UnwindSafe for Apply<S, St, Req, F, In, Out, Err>
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<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
impl<S, St, Req> IntoService<S, St, Req> for Swhere
S: Service<St, Req>,
Source§fn into_service(self) -> S
fn into_service(self) -> S
Convert to a
Service