pub struct ParkedSession { /* private fields */ }Expand description
Lightweight, consuming handle returned by LashSession::park.
Parking flushes a session’s dirty state to its store and drops the live
in-memory runtime, keeping only enough to rebuild it: the session id, its
policy, and the store reference. This is the webserver-embedder quiesce /
handoff primitive — cache one of these per idle session at bounded memory
cost regardless of transcript size, then rebuild with
LashCore::resume.
The facade owns this vocabulary; it wraps the core parking handle so the
resume path stays a facade capability rather than exposing lash-core
environment plumbing to hosts.
Implementations§
Source§impl ParkedSession
impl ParkedSession
Sourcepub fn session_id(&self) -> &str
pub fn session_id(&self) -> &str
The parked session’s id. Use it to key a per-session cache of parked handles on the host.
Auto Trait Implementations§
impl !RefUnwindSafe for ParkedSession
impl !UnwindSafe for ParkedSession
impl Freeze for ParkedSession
impl Send for ParkedSession
impl Sync for ParkedSession
impl Unpin for ParkedSession
impl UnsafeUnpin for ParkedSession
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