Struct actix_service::dev::TransformMapInitErr [−][src]
pub struct TransformMapInitErr<T, S, F, E> { /* fields omitted */ }
Expand description
Transform for the map_init_err
combinator, changing the type of a new
transform’s init error.
This is created by the Transform::map_init_err
method.
Trait Implementations
type InitError = E
type InitError = E
Errors produced while building a transform service.
type Future = TransformMapInitErrFuture<T, S, F, E>
type Future = TransformMapInitErrFuture<T, S, F, E>
The future response value.
Creates and returns a new Transform component, asynchronously
fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
Map this transforms’s factory error to a different error, returning a new transform service factory. Read more
Auto Trait Implementations
impl<T, S, F, E> RefUnwindSafe for TransformMapInitErr<T, S, F, E> where
E: RefUnwindSafe,
F: RefUnwindSafe,
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S, F, E> Unpin for TransformMapInitErr<T, S, F, E> where
E: Unpin,
F: Unpin,
S: Unpin,
T: Unpin,
impl<T, S, F, E> UnwindSafe for TransformMapInitErr<T, S, F, E> where
E: UnwindSafe,
F: UnwindSafe,
S: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more