Struct actix_web_lab::extract::LazyData
source · pub struct LazyData<T> { /* private fields */ }
Expand description
A lazy extractor for thread-local data.
Using LazyData
as an extractor will not initialize the data; get
must be used.
Implementations§
Trait Implementations§
source§impl<T: 'static> FromRequest for LazyData<T>
impl<T: 'static> FromRequest for LazyData<T>
source§fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
fn from_request(req: &HttpRequest, _: &mut Payload) -> Self::Future
Create a
Self
from request parts asynchronously.Auto Trait Implementations§
impl<T> !RefUnwindSafe for LazyData<T>
impl<T> !Send for LazyData<T>
impl<T> !Sync for LazyData<T>
impl<T> Unpin for LazyData<T>
impl<T> !UnwindSafe for LazyData<T>
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