pub struct GatewayRuntimeSnapshot {
pub state: GatewayRuntimeState,
pub configured_bind_address: SocketAddr,
pub bound_address: Option<SocketAddr>,
pub active_workers: u64,
pub active_clients: u64,
pub messages_routed: u64,
pub routing_failures: u64,
pub last_error: Option<String>,
}Expand description
Safe point-in-time Gateway lifecycle and metric snapshot.
Fields§
§state: GatewayRuntimeStateCurrent execution state.
configured_bind_address: SocketAddrDeployment-configured listener address.
bound_address: Option<SocketAddr>Actual bound address while or after an instance has run.
active_workers: u64Active authenticated worker sockets.
active_clients: u64Active authenticated client sockets.
messages_routed: u64Successfully routed messages since this instance started.
routing_failures: u64Failed routing attempts since this instance started.
last_error: Option<String>Sanitized lifecycle failure, when present.
Trait Implementations§
Source§impl Clone for GatewayRuntimeSnapshot
impl Clone for GatewayRuntimeSnapshot
Source§fn clone(&self) -> GatewayRuntimeSnapshot
fn clone(&self) -> GatewayRuntimeSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GatewayRuntimeSnapshot
impl Debug for GatewayRuntimeSnapshot
impl Eq for GatewayRuntimeSnapshot
Source§impl PartialEq for GatewayRuntimeSnapshot
impl PartialEq for GatewayRuntimeSnapshot
impl StructuralPartialEq for GatewayRuntimeSnapshot
Auto Trait Implementations§
impl Freeze for GatewayRuntimeSnapshot
impl RefUnwindSafe for GatewayRuntimeSnapshot
impl Send for GatewayRuntimeSnapshot
impl Sync for GatewayRuntimeSnapshot
impl Unpin for GatewayRuntimeSnapshot
impl UnsafeUnpin for GatewayRuntimeSnapshot
impl UnwindSafe for GatewayRuntimeSnapshot
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