pub struct ShieldService<S, U: User> { /* private fields */ }Implementations§
Trait Implementations§
Source§impl<S: Clone, U: Clone + User> Clone for ShieldService<S, U>
impl<S: Clone, U: Clone + User> Clone for ShieldService<S, U>
Source§fn clone(&self) -> ShieldService<S, U>
fn clone(&self) -> ShieldService<S, U>
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, U: User + Clone + 'static, ReqBody, ResBody> Service<Request<ReqBody>> for ShieldService<S, U>
impl<S, U: User + Clone + 'static, ReqBody, ResBody> Service<Request<ReqBody>> for ShieldService<S, U>
Source§type Future = Pin<Box<dyn Future<Output = Result<<ShieldService<S, U> as Service<Request<ReqBody>>>::Response, <ShieldService<S, U> as Service<Request<ReqBody>>>::Error>> + Send>>
type Future = Pin<Box<dyn Future<Output = Result<<ShieldService<S, U> as Service<Request<ReqBody>>>::Response, <ShieldService<S, U> as Service<Request<ReqBody>>>::Error>> + Send>>
The future response value.
Auto Trait Implementations§
impl<S, U> Freeze for ShieldService<S, U>where
S: Freeze,
impl<S, U> !RefUnwindSafe for ShieldService<S, U>
impl<S, U> Send for ShieldService<S, U>where
S: Send,
impl<S, U> Sync for ShieldService<S, U>where
S: Sync,
impl<S, U> Unpin for ShieldService<S, U>where
S: Unpin,
impl<S, U> !UnwindSafe for ShieldService<S, U>
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