#[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 more