Struct boluo_core::service::MapRequest
source · pub struct MapRequest<S, F> { /* private fields */ }Expand description
map_request返回的服务。
Implementations§
source§impl<S, F> MapRequest<S, F>
impl<S, F> MapRequest<S, F>
sourcepub fn new(service: S, f: F) -> Self
pub fn new(service: S, f: F) -> Self
创建一个新的MapRequest服务。
Trait Implementations§
source§impl<S: Clone, F: Clone> Clone for MapRequest<S, F>
impl<S: Clone, F: Clone> Clone for MapRequest<S, F>
source§fn clone(&self) -> MapRequest<S, F>
fn clone(&self) -> MapRequest<S, F>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<S, F> Debug for MapRequest<S, F>where
S: Debug,
impl<S, F> Debug for MapRequest<S, F>where
S: Debug,
source§impl<S, F, R1, R2> Service<R1> for MapRequest<S, F>
impl<S, F, R1, R2> Service<R1> for MapRequest<S, F>
impl<S: Copy, F: Copy> Copy for MapRequest<S, F>
Auto Trait Implementations§
impl<S, F> Freeze for MapRequest<S, F>
impl<S, F> RefUnwindSafe for MapRequest<S, F>where
S: RefUnwindSafe,
F: RefUnwindSafe,
impl<S, F> Send for MapRequest<S, F>
impl<S, F> Sync for MapRequest<S, F>
impl<S, F> Unpin for MapRequest<S, F>
impl<S, F> UnwindSafe for MapRequest<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<S, Req> ServiceExt<Req> for S
impl<S, Req> ServiceExt<Req> for S
source§fn with<T>(self, middleware: T) -> T::Servicewhere
Self: Sized,
T: Middleware<Self>,
fn with<T>(self, middleware: T) -> T::Servicewhere
Self: Sized,
T: Middleware<Self>,
在此服务上应用中间件。 Read more
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