pub struct ContextCheckpointSessionStateV1 {
pub identity: SessionIdentityV1,
pub state: ContextSessionStateV1,
}Expand description
Portable, bounded session state needed to continue work.
This intentionally contains counters and references only. It does not carry the live session cache, process state, locks, PIDs, or flush times.
Fields§
§identity: SessionIdentityV1Existing immutable session identity, including tenant and workspace scope.
state: ContextSessionStateV1Existing portable session continuation state.
Implementations§
Source§impl ContextCheckpointSessionStateV1
impl ContextCheckpointSessionStateV1
Sourcepub fn try_new(
identity: SessionIdentityV1,
state: ContextSessionStateV1,
) -> Result<Self, ValidationError>
pub fn try_new( identity: SessionIdentityV1, state: ContextSessionStateV1, ) -> Result<Self, ValidationError>
Construct session metadata after applying lifecycle invariants.
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate portable session lifecycle state.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ContextCheckpointSessionStateV1
impl<'de> Deserialize<'de> for ContextCheckpointSessionStateV1
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContextCheckpointSessionStateV1
impl StructuralPartialEq for ContextCheckpointSessionStateV1
Auto Trait Implementations§
impl Forget for ContextCheckpointSessionStateV1
impl Freeze for ContextCheckpointSessionStateV1
impl Move for ContextCheckpointSessionStateV1
impl RefUnwindSafe for ContextCheckpointSessionStateV1
impl Send for ContextCheckpointSessionStateV1
impl Sync for ContextCheckpointSessionStateV1
impl Unpin for ContextCheckpointSessionStateV1
impl UnsafeUnpin for ContextCheckpointSessionStateV1
impl UnwindSafe for ContextCheckpointSessionStateV1
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