fn map_err<F, E>(self, f: F) -> crate::dev::MapErr<Self, F, E>
    where
        Self: Sized,
        F: Fn(Self::Error) -> E,
    {
        crate::dev::MapErr::new(self, f)
    }
/// Map this service's error to a different error, returning a new service.
///
/// This function is similar to the `Result::map_err` where it will change
/// the error type of the underlying service. This is useful for example to
/// ensure that services have the same error type.
///
/// Note that this function consumes the receiving service and returns a
/// wrapped version of it.
Map this service's error to a different error, returning a new service.
This function is similar to the `Result::map_err` where it will change
the error type of the underlying service. This is useful for example to
ensure that services have the same error type.

Note that this function consumes the receiving service and returns a
wrapped version of it.
Map this service ' s error to a different error returning a new service . This function is similar to the ` Result :: map_err ` where it will change the error type of the underlying service . This is useful for example to ensure that services have the same error type . Note that this function consumes the receiving service and returns a wrapped version of it .
fn map_err<F, E>(self, f: F) -> crate::dev::MapErr<Self, F, E>
    where
        Self: Sized,
        F: Fn(Self::Error) -> E,
    {
        crate::dev::MapErr::new(self, f)
    }
fn map_err < F , E > ( self , f : F ) -> crate :: dev :: MapErr < Self , F , E > where Self : Sized , F : Fn ( Self :: Error ) -> E , { crate :: dev :: MapErr :: new ( self , f ) }
Map this service's error to a different error, returning a new service.
Map this service ' s error to a different error returning a new service .
self
f
F
self
f
F