pub struct MapErr<A, F, E> { /* private fields */ }Expand description
Service for the map_err combinator, changing the type of a service’s
error.
This is created by the ServiceExt::map_err method.
Trait Implementations§
Source§impl<A, F, E> Service for MapErr<A, F, E>
impl<A, F, E> Service for MapErr<A, F, E>
Source§fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
fn poll_ready(&mut self, ctx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
Returns
Ready when the service is able to process requests. Read moreSource§fn call(&mut self, req: A::Request) -> Self::Future
fn call(&mut self, req: A::Request) -> Self::Future
Process the request and return the response asynchronously. Read more
Auto Trait Implementations§
impl<A, F, E> Freeze for MapErr<A, F, E>
impl<A, F, E> RefUnwindSafe for MapErr<A, F, E>
impl<A, F, E> Send for MapErr<A, F, E>
impl<A, F, E> Sync for MapErr<A, F, E>
impl<A, F, E> Unpin for MapErr<A, F, E>
impl<A, F, E> UnwindSafe for MapErr<A, F, E>
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<T> IntoService<T> for Twhere
T: Service,
impl<T> IntoService<T> for Twhere
T: Service,
Source§fn into_service(self) -> T
fn into_service(self) -> T
Convert to a
Service