pub struct Map<F, S, Res> { /* private fields */ }Expand description
Service produced by the map combinator.
This is created by the Service::map() and ServiceChain::map() methods.
Trait Implementations§
Source§impl<F, S, St, Req, Res> Service<St, Req> for Map<F, S, Res>
impl<F, S, St, Req, Res> Service<St, Req> for Map<F, S, Res>
Source§type Error = <S as Service<St, Req>>::Error
type Error = <S as Service<St, Req>>::Error
Error produced while checking readiness or processing a request.
Source§async fn call(&self, req: Req, ctx: Ctx<'_, Self, St>) -> Result<Res, S::Error>
async fn call(&self, req: Req, ctx: Ctx<'_, Self, St>) -> Result<Res, S::Error>
Processes a request and asynchronously returns the response. Read more
Source§async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
async fn ready(&self, ctx: Ctx<'_, Self, St>) -> Result<(), Self::Error>
Waits until the service is ready to process a request. 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<F, S, Res> Freeze for Map<F, S, Res>
impl<F, S, Res> RefUnwindSafe for Map<F, S, Res>
impl<F, S, Res> Send for Map<F, S, Res>
impl<F, S, Res> Sync for Map<F, S, Res>
impl<F, S, Res> Unpin for Map<F, S, Res>
impl<F, S, Res> UnsafeUnpin for Map<F, S, Res>
impl<F, S, Res> UnwindSafe for Map<F, S, Res>
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
Converts this value into a service.