pub struct ManagedSessionState {
pub events: Vec<SessionEvent>,
pub run_state: RunState,
}Expand description
A snapshot of one managed session’s state.
Not PartialEq: SessionEvent is #[non_exhaustive] and not comparable, so compare the
run_state and event count rather than whole snapshots.
Fields§
§events: Vec<SessionEvent>Events recorded for the session, in order.
run_state: RunStateSequence position, parked tool calls, and lifecycle status.
Trait Implementations§
Source§impl Clone for ManagedSessionState
impl Clone for ManagedSessionState
Source§fn clone(&self) -> ManagedSessionState
fn clone(&self) -> ManagedSessionState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManagedSessionState
impl Debug for ManagedSessionState
Source§impl<'de> Deserialize<'de> for ManagedSessionState
impl<'de> Deserialize<'de> for ManagedSessionState
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
Auto Trait Implementations§
impl Freeze for ManagedSessionState
impl RefUnwindSafe for ManagedSessionState
impl Send for ManagedSessionState
impl Sync for ManagedSessionState
impl Unpin for ManagedSessionState
impl UnsafeUnpin for ManagedSessionState
impl UnwindSafe for ManagedSessionState
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