#[non_exhaustive]pub enum SessionStatus {
Open,
Saved,
Other(String),
}unstable_session_status only.Expand description
UNSTABLE
This capability is not part of the spec yet, and may be removed or changed at any point.
Whether the Agent has a session in memory, as reported by session/status.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Open
The Agent has the session in memory, for any connection.
This does not mean the requesting connection is attached to it. A Client that did
not create or resume the session on its own connection MUST still call
session/load or session/resume before sending session/prompt or expecting
session/update notifications.
Saved
The Agent knows the session and can resume it, but does not have it in memory.
The Client can call session/load or session/resume to start it.
Other(String)
Custom or future session status.
Values beginning with _ are reserved for implementation-specific
extensions. Unknown values that do not begin with _ are reserved for
future ACP variants. Clients MUST treat a value they do not recognize as
saved.
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone 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>,
impl Eq for SessionStatus
Source§impl JsonSchema for SessionStatus
Available on crate feature schemars only.
impl JsonSchema for SessionStatus
schemars only.Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for SessionStatus
impl PartialEq for SessionStatus
Source§impl Serialize for SessionStatus
impl Serialize 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.