#[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<SessionState>
pub fn from_str_name(value: &str) -> Option<SessionState>
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 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 ==.Source§impl PartialOrd for SessionState
impl PartialOrd for SessionState
impl StructuralPartialEq for SessionState
Source§impl TryFrom<i32> for SessionState
impl TryFrom<i32> for SessionState
Source§type Error = UnknownEnumValue
type Error = UnknownEnumValue
Source§fn try_from(value: i32) -> Result<SessionState, UnknownEnumValue>
fn try_from(value: i32) -> Result<SessionState, UnknownEnumValue>
Auto Trait Implementations§
impl Freeze for SessionState
impl RefUnwindSafe for SessionState
impl Send for SessionState
impl Sync for SessionState
impl Unpin for SessionState
impl UnsafeUnpin for SessionState
impl UnwindSafe for SessionState
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request