pub struct Map<A, F, Response> { /* private fields */ }
Expand description
Service for the map
combinator, changing the type of a service’s response.
This is created by the ServiceExt::map
method.
Trait Implementations§
Source§impl<A, F, Response> Service for Map<A, F, Response>
impl<A, F, Response> Service for Map<A, F, Response>
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, Response> Freeze for Map<A, F, Response>
impl<A, F, Response> RefUnwindSafe for Map<A, F, Response>
impl<A, F, Response> Send for Map<A, F, Response>
impl<A, F, Response> Sync for Map<A, F, Response>
impl<A, F, Response> Unpin for Map<A, F, Response>
impl<A, F, Response> UnwindSafe for Map<A, F, Response>
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