pub struct SessionContextImpl {
pub app: AppContext,
pub state: SessionState,
}Expand description
Session-level context with mutable state.
Fields§
§app: AppContextThe underlying application context.
state: SessionStateMutable session state (key-value store).
Trait Implementations§
Source§impl Debug for SessionContextImpl
impl Debug for SessionContextImpl
Source§impl ReadonlyContext for SessionContextImpl
impl ReadonlyContext for SessionContextImpl
Source§impl SessionContext for SessionContextImpl
impl SessionContext for SessionContextImpl
Source§fn session_state(&self) -> &SessionState
fn session_state(&self) -> &SessionState
Returns the current session state (key-value store scoped to the session).
Source§fn session_state_mut(&mut self) -> &mut SessionState
fn session_state_mut(&mut self) -> &mut SessionState
Returns mutable access to session state.
Auto Trait Implementations§
impl Freeze for SessionContextImpl
impl RefUnwindSafe for SessionContextImpl
impl Send for SessionContextImpl
impl Sync for SessionContextImpl
impl Unpin for SessionContextImpl
impl UnsafeUnpin for SessionContextImpl
impl UnwindSafe for SessionContextImpl
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