pub struct MapResult<S, F> { /* private fields */ }Expand description
map_result 返回的服务。
Implementations§
Trait Implementations§
impl<S: Copy, F: Copy> Copy for MapResult<S, F>
Auto Trait Implementations§
impl<S, F> Freeze for MapResult<S, F>
impl<S, F> RefUnwindSafe for MapResult<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
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> UnwindSafe for MapResult<S, F>where
S: UnwindSafe,
F: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S, Req> ServiceExt<Req> for S
impl<S, Req> ServiceExt<Req> for S
Source§fn map_result<F, Res, Err>(self, f: F) -> MapResult<Self, F>
fn map_result<F, Res, Err>(self, f: F) -> MapResult<Self, F>
将此服务返回的结果映射为其他值。 Read more
Source§fn map_response<F, Res>(self, f: F) -> MapResponse<Self, F>
fn map_response<F, Res>(self, f: F) -> MapResponse<Self, F>
将此服务返回的响应映射为其他值。 Read more
Source§fn map_request<F, R>(self, f: F) -> MapRequest<Self, F>
fn map_request<F, R>(self, f: F) -> MapRequest<Self, F>
将发送给此服务的请求映射为其他值。 Read more