pub enum SessionStatus {
Created,
Active,
Closed,
Expired,
}Expand description
Status of a stateful LLM session.
Variants§
Created
Session has been created but not yet activated
Active
Session is active and accepting deltas
Closed
Session was closed normally
Expired
Session expired due to TTL
Implementations§
Source§impl SessionStatus
impl SessionStatus
Sourcepub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
pub fn from_db_str(s: &str) -> Result<Self, EnumParseError>
Parse from database string representation.
Sourcepub fn is_terminal(&self) -> bool
pub fn is_terminal(&self) -> bool
Check if this is a terminal state (no further transitions possible).
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for SessionStatus
impl ComposeSchema for SessionStatus
Source§impl Debug for SessionStatus
impl Debug for SessionStatus
Source§impl<'de> Deserialize<'de> for SessionStatus
impl<'de> Deserialize<'de> for SessionStatus
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
Source§impl Display for SessionStatus
impl Display for SessionStatus
Source§impl FromStr for SessionStatus
impl FromStr for SessionStatus
Source§impl Hash for SessionStatus
impl Hash for SessionStatus
Source§impl PartialEq for SessionStatus
impl PartialEq for SessionStatus
Source§impl Serialize for SessionStatus
impl Serialize for SessionStatus
Source§impl ToSchema for SessionStatus
impl ToSchema for SessionStatus
impl Copy for SessionStatus
impl Eq for SessionStatus
impl StructuralPartialEq for SessionStatus
Auto Trait Implementations§
impl Freeze for SessionStatus
impl RefUnwindSafe for SessionStatus
impl Send for SessionStatus
impl Sync for SessionStatus
impl Unpin for SessionStatus
impl UnwindSafe for SessionStatus
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.