Struct actix_service::dev::Map [−][src]
Service for the map
combinator, changing the type of a service's response.
This is created by the ServiceExt::map
method.
Trait Implementations
impl<A, F, Req, Res> Clone for Map<A, F, Req, Res> where
A: Clone,
F: Clone,
[src]
A: Clone,
F: Clone,
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A, F, Req, Res> Service<Req> for Map<A, F, Req, Res> where
A: Service<Req>,
F: FnMut(A::Response) -> Res + Clone,
[src]
A: Service<Req>,
F: FnMut(A::Response) -> Res + Clone,
type Response = Res
Responses given by the service.
type Error = A::Error
Errors produced by the service when polling readiness or executing call.
type Future = MapFuture<A, F, Req, Res>
The future response value.
fn poll_ready(&self, cx: &mut Context<'_>) -> Poll<Result<(), Self::Error>>
[src]
fn call(&self, req: Req) -> Self::Future
[src]
Auto Trait Implementations
impl<A, F, Req, Res> Send for Map<A, F, Req, Res> where
A: Send,
F: Send,
Req: Send,
Res: Send,
[src]
A: Send,
F: Send,
Req: Send,
Res: Send,
impl<A, F, Req, Res> Sync for Map<A, F, Req, Res> where
A: Sync,
F: Sync,
Req: Sync,
Res: Sync,
[src]
A: Sync,
F: Sync,
Req: Sync,
Res: Sync,
impl<A, F, Req, Res> Unpin for Map<A, F, Req, Res> where
A: Unpin,
F: Unpin,
Req: Unpin,
Res: Unpin,
[src]
A: Unpin,
F: Unpin,
Req: Unpin,
Res: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<S, Req> IntoService<S, Req> for S where
S: Service<Req>,
[src]
S: Service<Req>,
pub fn into_service(Self) -> S
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,