Struct mailpot_web::ReadableSession
pub struct ReadableSession {
session: OwnedRwLockReadGuard<Session, Session>,
}
Expand description
An extractor which provides a readable session. Sessions may have many readers.
Fields§
§session: OwnedRwLockReadGuard<Session, Session>
Trait Implementations§
§impl Debug for ReadableSession
impl Debug for ReadableSession
§impl Deref for ReadableSession
impl Deref for ReadableSession
§impl<S> FromRequestParts<S> for ReadableSessionwhere
S: Send + Sync,
impl<S> FromRequestParts<S> for ReadableSessionwhere S: Send + Sync,
§type Rejection = Infallible
type Rejection = Infallible
If the extractor fails it’ll use this “rejection” type. A rejection is
a kind of error that can be converted into a response.
§fn from_request_parts<'life0, 'life1, 'async_trait>(
parts: &'life0 mut Parts,
state: &'life1 S
) -> Pin<Box<dyn Future<Output = Result<ReadableSession, <ReadableSession as FromRequestParts<S>>::Rejection>> + Send + 'async_trait, Global>>where
'life0: 'async_trait,
'life1: 'async_trait,
ReadableSession: 'async_trait,
fn from_request_parts<'life0, 'life1, 'async_trait>( parts: &'life0 mut Parts, state: &'life1 S ) -> Pin<Box<dyn Future<Output = Result<ReadableSession, <ReadableSession as FromRequestParts<S>>::Rejection>> + Send + 'async_trait, Global>>where 'life0: 'async_trait, 'life1: 'async_trait, ReadableSession: 'async_trait,
Perform the extraction.