pub struct LoadedSession { /* private fields */ }Expand description
A validated persisted session loaded once before runtime construction.
The runtime owns the complete session state. Surface adapters may load and
validate a session before transferring this handle into
crate::RuntimeBuilder without loading the session a second time.
Implementations§
Source§impl LoadedSession
impl LoadedSession
Sourcepub async fn load(
store: &FileSessionStore,
session_id: &SessionId,
) -> Result<Self, RuntimeError>
pub async fn load( store: &FileSessionStore, session_id: &SessionId, ) -> Result<Self, RuntimeError>
Loads and validates one session from the supplied store.
Auto Trait Implementations§
impl Forget for LoadedSession
impl Freeze for LoadedSession
impl Move for LoadedSession
impl RefUnwindSafe for LoadedSession
impl Send for LoadedSession
impl Sync for LoadedSession
impl Unpin for LoadedSession
impl UnsafeUnpin for LoadedSession
impl UnwindSafe for LoadedSession
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