Struct MapResult
struct MapResult<S, F> { ... }
Service returned by the map_result combinator.
Implementations
impl<S, F> MapResult<S, F>
const fn new(inner: S, f: F) -> SelfCreates a new
MapResultservice.fn layer(f: F) -> MapResultLayer<F>Returns a new
Layerthat producesMapResultservices.This is a convenience function that simply calls
MapResultLayer::new.
impl<M, S, Target, Request> MakeService for MapResult<S, F>
fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <M as MakeService<Target, Request>>::MakeError>>fn make_service(self: &mut Self, target: Target) -> <M as MakeService<Target, Request>>::Future
impl<S, F> Debug for MapResult<S, F>
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl<S, F> Freeze for MapResult<S, F>
impl<S, F> RefUnwindSafe for MapResult<S, F>
impl<S, F> Send for MapResult<S, F>
impl<S, F> Sync for MapResult<S, F>
impl<S, F> Unpin for MapResult<S, F>
impl<S, F> UnsafeUnpin for MapResult<S, F>
impl<S, F> UnwindSafe for MapResult<S, F>
impl<S, F, Request, Response, Error> Service for MapResult<S, F>
fn poll_ready(self: &mut Self, cx: &mut Context<'_>) -> Poll<Result<(), <Self as >::Error>>fn call(self: &mut Self, request: Request) -> <Self as >::Future
impl<S: $crate::clone::Clone, F: $crate::clone::Clone> Clone for MapResult<S, F>
fn clone(self: &Self) -> MapResult<S, F>
impl<T> Any for MapResult<S, F>
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for MapResult<S, F>
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for MapResult<S, F>
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for MapResult<S, F>
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for MapResult<S, F>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Instrument for MapResult<S, F>
impl<T> ToOwned for MapResult<S, F>
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T> WithSubscriber for MapResult<S, F>
impl<T, Request> ServiceExt for MapResult<S, F>
impl<T, U> Into for MapResult<S, F>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for MapResult<S, F>
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for MapResult<S, F>
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>