#[repr(i32)]pub enum SessionState {
Unspecified = 0,
Open = 1,
Resolved = 2,
Expired = 3,
Suspended = 4,
Cancelled = 5,
}Variants§
Unspecified = 0
Open = 1
Resolved = 2
Expired = 3
Suspended = 4
Session paused by an accepted SuspendSession RPC (RFC-MACP-0001 §7.5). Non-terminal: TTL is banked while suspended and restored on ResumeSession. Only OPEN<->SUSPENDED and SUSPENDED->EXPIRED transitions are permitted; a commitment may only be emitted from OPEN, so SUSPENDED->RESOLVED is not.
Cancelled = 5
Terminal state for a session ended by an accepted CancelSession RPC (RFC-MACP-0001 §7.3). Distinct from EXPIRED (TTL / deterministic runtime policy) so consumers can tell explicit cancellation from expiry.
Implementations§
Source§impl SessionState
impl SessionState
Source§impl SessionState
impl SessionState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Clone for SessionState
impl Clone for SessionState
Source§fn clone(&self) -> SessionState
fn clone(&self) -> SessionState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for SessionState
Source§impl Debug for SessionState
impl Debug for SessionState
Source§impl Default for SessionState
impl Default for SessionState
Source§fn default() -> SessionState
fn default() -> SessionState
impl Eq for SessionState
Source§impl From<SessionState> for i32
impl From<SessionState> for i32
Source§fn from(value: SessionState) -> i32
fn from(value: SessionState) -> i32
Source§impl Hash for SessionState
impl Hash for SessionState
Source§impl Ord for SessionState
impl Ord for SessionState
Source§fn cmp(&self, other: &SessionState) -> Ordering
fn cmp(&self, other: &SessionState) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SessionState
impl PartialEq for SessionState
Source§fn eq(&self, other: &SessionState) -> bool
fn eq(&self, other: &SessionState) -> bool
self and other values to be equal, and is used by ==.