pub enum SessionFormation {
Explicit {
timestamp: DateTime<Utc>,
},
FirstLoop {
timestamp: DateTime<Utc>,
},
InactivityTimeout {
threshold_secs: u64,
previous_session_id: Option<String>,
timestamp: DateTime<Utc>,
},
}Expand description
How this Session was initially created.
Variants§
Explicit
Created by direct construction — e.g. when the caller manually builds a
Session value (e.g. in tests or tooling).
[SessionRecorder] never sets this variant; it always writes
FirstLoop when it opens a session.
FirstLoop
Created automatically when a new session_id first appeared in an AgentStart
event (the recorder saw the session_id for the first time).
InactivityTimeout
A new session was opened because the agent had been idle longer than threshold_secs.
Requires the caller to have rotated the session_id beforehand — for example
via [BasicAgent::check_and_rotate]. The recorder detects the new session_id
when the next AgentStart arrives.
Trait Implementations§
Source§impl Clone for SessionFormation
impl Clone for SessionFormation
Source§fn clone(&self) -> SessionFormation
fn clone(&self) -> SessionFormation
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 SessionFormation
impl Debug for SessionFormation
Source§impl<'de> Deserialize<'de> for SessionFormation
impl<'de> Deserialize<'de> for SessionFormation
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 SessionFormation
impl RefUnwindSafe for SessionFormation
impl Send for SessionFormation
impl Sync for SessionFormation
impl Unpin for SessionFormation
impl UnsafeUnpin for SessionFormation
impl UnwindSafe for SessionFormation
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