[−][src]Trait actix_service::NewService
Creates new Service
values.
Acts as a service factory. This is useful for cases where new Service
values must be produced. One case is a TCP servier listener. The listner
accepts new TCP streams, obtains a new Service
value using the
NewService
trait, and uses that new Service
value to process inbound
requests on that new TCP stream.
Config
is a service factory configuration type.
Associated Types
type Request
Requests handled by the service.
type Response
Responses given by the service
type Error
Errors produced by the service
type Service: Service<Request = Self::Request, Response = Self::Response, Error = Self::Error>
The Service
value created by this factory
type InitError
Errors produced while building a service.
type Future: Future<Item = Self::Service, Error = Self::InitError>
The future of the Service
instance.
Required methods
fn new_service(&self, cfg: &Config) -> Self::Future
Create and return a new service value asynchronously.
Provided methods
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
Apply transform service to specified service and use it as a next service in chain.
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
Apply function to specified service and use it as a next service in chain.
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
Map this service's config type to a different config, and use for nested service
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
Call another service after call to this one has resolved successfully.
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
Self: Sized,
E: From<Self::Error>,
NewService
that create service to map this service's error
and new service's init error to any error
implementing From
for this services
Error`.
Note that this function consumes the receiving new service and returns a wrapped version of it.
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
Create NewService
to chain on a computation for when a call to the
service finished, passing the result of the call to the next
service B
.
Note that this function consumes the receiving future and returns a wrapped version of it.
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
Self: Sized,
F: FnMut(Self::Response) -> R,
Map this service's output to a different type, returning a new service of the resulting type.
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
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, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
Self: Sized,
F: Fn(Self::InitError) -> E,
Map this service's init error to a different error, returning a new service.
Implementations on Foreign Types
impl<S, C> NewService<C> for Rc<S> where
S: NewService<C>,
[src]
S: NewService<C>,
type Request = S::Request
type Response = S::Response
type Error = S::Error
type Service = S::Service
type InitError = S::InitError
type Future = S::Future
fn new_service(&self, cfg: &C) -> S::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<S, C> NewService<C> for Arc<S> where
S: NewService<C>,
[src]
S: NewService<C>,
type Request = S::Request
type Response = S::Response
type Error = S::Error
type Service = S::Service
type InitError = S::InitError
type Future = S::Future
fn new_service(&self, cfg: &C) -> S::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
Implementors
impl<A, B, C> NewService<C> for AndThenNewService<A, B, C> where
A: NewService<C>,
B: NewService<C, Request = A::Response, Error = A::Error, InitError = A::InitError>,
[src]
A: NewService<C>,
B: NewService<C, Request = A::Response, Error = A::Error, InitError = A::InitError>,
type Request = A::Request
type Response = B::Response
type Error = A::Error
type Service = AndThen<A::Service, B::Service>
type InitError = A::InitError
type Future = AndThenNewServiceFuture<A, B, C>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<A, B, C> NewService<C> for ThenNewService<A, B, C> where
A: NewService<C>,
B: NewService<C, Request = Result<A::Response, A::Error>, Error = A::Error, InitError = A::InitError>,
[src]
A: NewService<C>,
B: NewService<C, Request = Result<A::Response, A::Error>, Error = A::Error, InitError = A::InitError>,
type Request = A::Request
type Response = B::Response
type Error = A::Error
type Service = Then<A::Service, B::Service>
type InitError = A::InitError
type Future = ThenNewServiceFuture<A, B, C>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<A, E, C> NewService<C> for FromErrNewService<A, E, C> where
A: NewService<C>,
E: From<A::Error>,
[src]
A: NewService<C>,
E: From<A::Error>,
type Request = A::Request
type Response = A::Response
type Error = E
type Service = FromErr<A::Service, E>
type InitError = A::InitError
type Future = FromErrNewServiceFuture<A, E, C>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<A, F, E, C> NewService<C> for MapErrNewService<A, F, E, C> where
A: NewService<C>,
F: Fn(A::Error) -> E + Clone,
[src]
A: NewService<C>,
F: Fn(A::Error) -> E + Clone,
type Request = A::Request
type Response = A::Response
type Error = E
type Service = MapErr<A::Service, F, E>
type InitError = A::InitError
type Future = MapErrNewServiceFuture<A, F, E, C>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<A, F, E, C> NewService<C> for MapInitErr<A, F, E, C> where
A: NewService<C>,
F: Fn(A::InitError) -> E + Clone,
[src]
A: NewService<C>,
F: Fn(A::InitError) -> E + Clone,
type Request = A::Request
type Response = A::Response
type Error = A::Error
type Service = A::Service
type InitError = E
type Future = MapInitErrFuture<A, F, E, C>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<A, F, Res, Cfg> NewService<Cfg> for MapNewService<A, F, Res, Cfg> where
A: NewService<Cfg>,
F: FnMut(A::Response) -> Res + Clone,
[src]
A: NewService<Cfg>,
F: FnMut(A::Response) -> Res + Clone,
type Request = A::Request
type Response = Res
type Error = A::Error
type Service = Map<A::Service, F, Res>
type InitError = A::InitError
type Future = MapNewServiceFuture<A, F, Res, Cfg>
fn new_service(&self, cfg: &Cfg) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<C, Req, Res, Err, InitErr> NewService<C> for BoxedNewService<C, Req, Res, Err, InitErr> where
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
[src]
Req: 'static,
Res: 'static,
Err: 'static,
InitErr: 'static,
type Request = Req
type Response = Res
type Error = Err
type InitError = InitErr
type Service = BoxedService<Req, Res, Err>
type Future = Box<dyn Future<Item = Self::Service, Error = Self::InitError>>
fn new_service(&self, cfg: &C) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,
impl<R, E1, E2> NewService<()> for BlankNewService<R, E1, E2>
[src]
type Request = R
type Response = R
type Error = E1
type Service = Blank<R, E1>
type InitError = E2
type Future = FutureResult<Self::Service, Self::InitError>
fn new_service(&self, _: &()) -> Self::Future
[src]
fn apply<T, T1, B, B1>(
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
[src]
self,
transform: T1,
service: B1
) -> AndThenTransform<T, Self, B, Config> where
Self: Sized,
T: Transform<B::Service, Request = Self::Response, InitError = Self::InitError>,
T::Error: From<Self::Error>,
T1: IntoTransform<T, B::Service>,
B: NewService<Config, InitError = Self::InitError>,
B1: IntoNewService<B, Config>,
fn apply_fn<B, I, F, Out>(
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
[src]
self,
service: I,
f: F
) -> AndThenApplyNewService<Self, B, F, Out, Config> where
Self: Sized,
B: NewService<Config, Error = Self::Error, InitError = Self::InitError>,
I: IntoNewService<B, Config>,
F: FnMut(Self::Response, &mut B::Service) -> Out,
Out: IntoFuture,
Out::Error: Into<Self::Error>,
fn apply_cfg<F, C, S, U>(
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
self,
service: U,
f: F
) -> AndThenNewService<Self, ApplyConfig<F, S, Config, C>, Config> where
Self: Sized,
F: Fn(&Config) -> C,
U: IntoNewService<S, C>,
S: NewService<C, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn and_then<F, B>(self, new_service: F) -> AndThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Self::Response, Error = Self::Error, InitError = Self::InitError>,
fn from_err<E>(self) -> FromErrNewService<Self, E, Config> where
Self: Sized,
E: From<Self::Error>,
[src]
Self: Sized,
E: From<Self::Error>,
fn then<F, B>(self, new_service: F) -> ThenNewService<Self, B, Config> where
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
[src]
Self: Sized,
F: IntoNewService<B, Config>,
B: NewService<Config, Request = Result<Self::Response, Self::Error>, Error = Self::Error, InitError = Self::InitError>,
fn map<F, R>(self, f: F) -> MapNewService<Self, F, R, Config> where
Self: Sized,
F: FnMut(Self::Response) -> R,
[src]
Self: Sized,
F: FnMut(Self::Response) -> R,
fn map_err<F, E>(self, f: F) -> MapErrNewService<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
[src]
Self: Sized,
F: Fn(Self::Error) -> E + Clone,
fn map_init_err<F, E>(self, f: F) -> MapInitErr<Self, F, E, Config> where
Self: Sized,
F: Fn(Self::InitError) -> E,
[src]
Self: Sized,
F: Fn(Self::InitError) -> E,