pub struct StateSnapshot {Show 28 fields
pub connection_id: String,
pub device_id: Option<String>,
pub device_id_hint: Option<String>,
pub remote_node_id: Option<String>,
pub state: String,
pub transport_state: String,
pub protocol_state: String,
pub routable: bool,
pub logical_session_terminal: bool,
pub readiness_state: ReadinessState,
pub readiness_reason: String,
pub transport_generation: u64,
pub route_generation: u64,
pub active_transport_stable_id: Option<u64>,
pub active_transport: String,
pub parallel_transport: Option<String>,
pub replacement_in_progress: bool,
pub last_lifecycle_transition_at_ms: i64,
pub transition_count: u64,
pub connecting_transition_count: u64,
pub replacement_count: u64,
pub retire_count: u64,
pub last_disconnect_reason: Option<String>,
pub last_reconnect_reason: Option<String>,
pub scopes: Vec<String>,
pub error: Option<String>,
pub created_at: i64,
pub updated_at: i64,
}Fields§
§connection_id: String§device_id: Option<String>§device_id_hint: Option<String>§remote_node_id: Option<String>§state: String§transport_state: String§protocol_state: String§routable: bool§logical_session_terminal: bool§readiness_state: ReadinessState§readiness_reason: String§transport_generation: u64§route_generation: u64§active_transport_stable_id: Option<u64>§active_transport: String§parallel_transport: Option<String>§replacement_in_progress: bool§last_lifecycle_transition_at_ms: i64§transition_count: u64§connecting_transition_count: u64§replacement_count: u64§retire_count: u64§last_disconnect_reason: Option<String>§last_reconnect_reason: Option<String>§scopes: Vec<String>Authenticated application scopes owned by this logical peer.
Native projection uses these exact Rust-owned scopes to route a connection into its registered capability without inventing a second roster or relying on gateway desired-peer identity.
error: Option<String>§created_at: i64§updated_at: i64Trait Implementations§
Source§impl Clone for StateSnapshot
impl Clone for StateSnapshot
Source§impl Debug for StateSnapshot
impl Debug for StateSnapshot
Source§impl<'de> Deserialize<'de> for StateSnapshot
impl<'de> Deserialize<'de> for StateSnapshot
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
Auto Trait Implementations§
impl Freeze for StateSnapshot
impl RefUnwindSafe for StateSnapshot
impl Send for StateSnapshot
impl Sync for StateSnapshot
impl Unpin for StateSnapshot
impl UnsafeUnpin for StateSnapshot
impl UnwindSafe for StateSnapshot
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