pub struct OneRequest;Expand description
Middleware that serializes calls to its wrapped service.
Trait Implementations§
Source§impl Clone for OneRequest
impl Clone for OneRequest
impl Copy for OneRequest
Source§impl Debug for OneRequest
impl Debug for OneRequest
Source§impl Default for OneRequest
impl Default for OneRequest
Source§impl<S, St> Middleware<S, St> for OneRequest
impl<S, St> Middleware<S, St> for OneRequest
Source§type Service = OneRequestService<S>
type Service = OneRequestService<S>
Wrapper returned by
Self::create. Read moreSource§fn create(&self, _: &St, service: S) -> Self::Service
fn create(&self, _: &St, service: S) -> Self::Service
Wraps
service using the supplied construction state. Read moreSource§fn apply_to<Sf, Req>(
self,
factory: Sf,
) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
fn apply_to<Sf, Req>( self, factory: Sf, ) -> ServiceChainFactory<ApplyMiddleware<Self, Sf>, St, Req>
Creates a service factory that instantiates a service and applies
the current middleware to it. Read more
Auto Trait Implementations§
impl Freeze for OneRequest
impl RefUnwindSafe for OneRequest
impl Send for OneRequest
impl Sync for OneRequest
impl Unpin for OneRequest
impl UnsafeUnpin for OneRequest
impl UnwindSafe for OneRequest
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