pub struct ExtractShield<U: User>(pub Shield<U>);Tuple Fields§
§0: Shield<U>Trait Implementations§
Source§impl<U: User + Clone + 'static> FromRequest for ExtractShield<U>
impl<U: User + Clone + 'static> FromRequest for ExtractShield<U>
Source§type Future = Ready<Result<ExtractShield<U>, <ExtractShield<U> as FromRequest>::Error>>
type Future = Ready<Result<ExtractShield<U>, <ExtractShield<U> as FromRequest>::Error>>
Future that resolves to a
Self. Read moreSource§fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _payload: &mut Payload) -> Self::Future
Create a
Self from request parts asynchronously.Auto Trait Implementations§
impl<U> Freeze for ExtractShield<U>
impl<U> !RefUnwindSafe for ExtractShield<U>
impl<U> Send for ExtractShield<U>
impl<U> Sync for ExtractShield<U>
impl<U> Unpin for ExtractShield<U>
impl<U> UnsafeUnpin for ExtractShield<U>
impl<U> !UnwindSafe for ExtractShield<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