Struct typed_session_axum::ReadableSession
source · pub struct ReadableSession<SessionData> { /* private fields */ }
Expand description
An extractor which provides a readable session. A single session may have many readers at the same time, but while a writer exists, no other reader or writer can exist.
Trait Implementations§
source§impl<SessionData: Debug> Debug for ReadableSession<SessionData>
impl<SessionData: Debug> Debug for ReadableSession<SessionData>
source§impl<SessionData> Deref for ReadableSession<SessionData>
impl<SessionData> Deref for ReadableSession<SessionData>
source§impl<S, SessionData: Send + Sync + 'static> FromRequestParts<S> for ReadableSession<SessionData>where
S: Send + Sync,
impl<S, SessionData: Send + Sync + 'static> FromRequestParts<S> for ReadableSession<SessionData>where 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.
Auto Trait Implementations§
impl<SessionData> !RefUnwindSafe for ReadableSession<SessionData>
impl<SessionData> Send for ReadableSession<SessionData>where SessionData: Send + Sync,
impl<SessionData> Sync for ReadableSession<SessionData>where SessionData: Send + Sync,
impl<SessionData> Unpin for ReadableSession<SessionData>where SessionData: Unpin,
impl<SessionData> !UnwindSafe for ReadableSession<SessionData>
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