Struct ntex_service::dev::MapInitErr [−][src]
pub struct MapInitErr<A, F, E> { /* fields omitted */ }
Expand description
MapInitErr
service combinator
Trait Implementations
impl<A, F, E> Clone for MapInitErr<A, F, E> where
A: Clone,
F: Clone,
[src]
impl<A, F, E> Clone for MapInitErr<A, F, E> where
A: Clone,
F: Clone,
[src]impl<A, F, E> ServiceFactory for MapInitErr<A, F, E> where
A: ServiceFactory,
F: Fn(A::InitError) -> E + Clone,
[src]
impl<A, F, E> ServiceFactory for MapInitErr<A, F, E> where
A: ServiceFactory,
F: Fn(A::InitError) -> E + Clone,
[src]type InitError = E
type InitError = E
Errors produced while building a service.
type Future = MapInitErrFuture<A, F, E>
type Future = MapInitErrFuture<A, F, E>
The future of the ServiceFactory
instance.
fn new_service(&self, cfg: A::Config) -> Self::Future
[src]
fn new_service(&self, cfg: A::Config) -> Self::Future
[src]Create and return a new service value asynchronously.
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
Self: Sized,
F: FnMut(Self::Response) -> R + Clone,
[src]
fn map<F, R>(self, f: F) -> MapServiceFactory<Self, F, R> where
Self: Sized,
F: FnMut(Self::Response) -> R + Clone,
[src]Map this service’s output to a different type, returning a new service of the resulting type. Read more
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
fn map_err<F, E>(self, f: F) -> MapErrServiceFactory<Self, F, E> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]Map this service’s error to a different error, returning a new service.
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
[src]
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E> where
Self: Sized,
F: Fn(Self::InitError) -> E + Clone,
[src]Map this factory’s init error to a different error, returning a new service.
Auto Trait Implementations
impl<A, F, E> RefUnwindSafe for MapInitErr<A, F, E> where
A: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
A: RefUnwindSafe,
E: RefUnwindSafe,
F: RefUnwindSafe,
impl<A, F, E> Send for MapInitErr<A, F, E> where
A: Send,
E: Send,
F: Send,
A: Send,
E: Send,
F: Send,
impl<A, F, E> Sync for MapInitErr<A, F, E> where
A: Sync,
E: Sync,
F: Sync,
A: Sync,
E: Sync,
F: Sync,
impl<A, F, E> Unpin for MapInitErr<A, F, E> where
A: Unpin,
E: Unpin,
F: Unpin,
A: Unpin,
E: Unpin,
F: Unpin,
impl<A, F, E> UnwindSafe for MapInitErr<A, F, E> where
A: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
A: UnwindSafe,
E: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]
impl<T> IntoServiceFactory<T> for T where
T: ServiceFactory,
[src]pub fn into_factory(Self) -> T
[src]
pub fn into_factory(Self) -> T
[src]Convert Self
to a ServiceFactory
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more