pub struct SessionRes<T> {
pub inner: T,
}Fields§
§inner: TTrait Implementations§
Source§impl<T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static> FromRequest for SessionRes<T>
impl<T: IntoPublic + ObjectId + Serialize + for<'de> Deserialize<'de> + Clone + Send + Sync + 'static> FromRequest for SessionRes<T>
Source§type Error = SessionError
type Error = SessionError
The associated error which can be returned.
Source§type Future = Pin<Box<dyn Future<Output = Result<SessionRes<T>, <SessionRes<T> as FromRequest>::Error>>>>
type Future = Pin<Box<dyn Future<Output = Result<SessionRes<T>, <SessionRes<T> as FromRequest>::Error>>>>
Future that resolves to a
Self. Read moreSource§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> Freeze for SessionRes<T>where
T: Freeze,
impl<T> RefUnwindSafe for SessionRes<T>where
T: RefUnwindSafe,
impl<T> Send for SessionRes<T>where
T: Send,
impl<T> Sync for SessionRes<T>where
T: Sync,
impl<T> Unpin for SessionRes<T>where
T: Unpin,
impl<T> UnwindSafe for SessionRes<T>where
T: UnwindSafe,
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