pub struct ShieldLayer<U>where
U: User,{ /* private fields */ }Implementations§
Source§impl<U> ShieldLayer<U>where
U: User,
impl<U> ShieldLayer<U>where
U: User,
pub fn new(shield: Shield<U>) -> ShieldLayer<U>
pub fn new_with_session_key( shield: Shield<U>, session_key: &'static str, ) -> ShieldLayer<U>
Trait Implementations§
Source§impl<U> Clone for ShieldLayer<U>
impl<U> Clone for ShieldLayer<U>
Source§fn clone(&self) -> ShieldLayer<U>
fn clone(&self) -> ShieldLayer<U>
Returns a duplicate 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> Layer<S> for ShieldLayer<U>
impl<S, U> Layer<S> for ShieldLayer<U>
Source§type Service = ShieldService<S, U>
type Service = ShieldService<S, U>
The wrapped service
Auto Trait Implementations§
impl<U> Freeze for ShieldLayer<U>
impl<U> !RefUnwindSafe for ShieldLayer<U>
impl<U> Send for ShieldLayer<U>
impl<U> Sync for ShieldLayer<U>
impl<U> Unpin for ShieldLayer<U>
impl<U> !UnwindSafe for ShieldLayer<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