[−][src]Struct actix_service::FnTransform
Methods
impl<F, S, Req, Res> FnTransform<F, S, Req, Res> where
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
[src]
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
Trait Implementations
impl<F, S, Req, Res> Transform<S> for FnTransform<F, S, Req, Res> where
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
[src]
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
type Request = Req
Requests handled by the service.
type Response = Res::Item
Responses given by the service.
type Error = Res::Error
Errors produced by the service.
type Future = Res::Future
The future response value.
fn poll_ready(&mut self) -> Poll<(), Self::Error>
[src]
fn call(&mut self, request: Req, service: &mut S) -> Self::Future
[src]
fn map_err<F, E>(self, f: F) -> TransformMapErr<Self, Service, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E,
[src]
Self: Sized,
F: Fn(Self::Error) -> E,
Map this transform's error to a different error, returning a new transform. Read more
impl<F, S, Req, Res> IntoTransform<FnTransform<F, S, Req, Res>, S> for F where
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
[src]
F: FnMut(Req, &mut S) -> Res,
Res: IntoFuture,
fn into_transform(self) -> FnTransform<F, S, Req, Res>
[src]
impl<F, S, Req, Res> Clone for FnTransform<F, S, Req, Res> where
F: FnMut(Req, &mut S) -> Res + Clone,
Res: IntoFuture,
[src]
F: FnMut(Req, &mut S) -> Res + Clone,
Res: IntoFuture,
Auto Trait Implementations
impl<F, S, Req, Res> Send for FnTransform<F, S, Req, Res> where
F: Send,
Req: Send,
Res: Send,
S: Send,
F: Send,
Req: Send,
Res: Send,
S: Send,
impl<F, S, Req, Res> Sync for FnTransform<F, S, Req, Res> where
F: Sync,
Req: Sync,
Res: Sync,
S: Sync,
F: Sync,
Req: Sync,
Res: Sync,
S: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,