pub struct RuntimeHealth {
pub uptime_millis: u64,
pub interface_count: u32,
pub online_interface_count: u32,
pub local_client_count: u32,
pub route_count: u32,
pub link_count: u32,
pub transported_link_count: u32,
pub rx_bytes: u64,
pub tx_bytes: u64,
pub rx_bps: u64,
pub tx_bps: u64,
}Expand description
A compact, host-facing health summary for a running runtime.
The source of truth is the runtime’s live InterfaceSnapshot list. Hosts can expose this over
Android binders, daemon JSON, CLIs, or logs without each one re-learning how to fold interface
state into the same operational counters.
Fields§
§uptime_millis: u64§interface_count: u32§online_interface_count: u32§local_client_count: u32§route_count: u32§link_count: u32§transported_link_count: u32§rx_bytes: u64§tx_bytes: u64§rx_bps: u64§tx_bps: u64Implementations§
Source§impl RuntimeHealth
impl RuntimeHealth
Sourcepub fn from_snapshots(uptime: Duration, snapshots: &[InterfaceSnapshot]) -> Self
pub fn from_snapshots(uptime: Duration, snapshots: &[InterfaceSnapshot]) -> Self
Fold a runtime snapshot list into the health shape hosts expose externally.
Trait Implementations§
Source§impl Clone for RuntimeHealth
impl Clone for RuntimeHealth
Source§fn clone(&self) -> RuntimeHealth
fn clone(&self) -> RuntimeHealth
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 moreimpl Copy for RuntimeHealth
Source§impl Debug for RuntimeHealth
impl Debug for RuntimeHealth
Source§impl Default for RuntimeHealth
impl Default for RuntimeHealth
Source§fn default() -> RuntimeHealth
fn default() -> RuntimeHealth
Returns the “default value” for a type. Read more
impl Eq for RuntimeHealth
Source§impl PartialEq for RuntimeHealth
impl PartialEq for RuntimeHealth
impl StructuralPartialEq for RuntimeHealth
Auto Trait Implementations§
impl Freeze for RuntimeHealth
impl RefUnwindSafe for RuntimeHealth
impl Send for RuntimeHealth
impl Sync for RuntimeHealth
impl Unpin for RuntimeHealth
impl UnsafeUnpin for RuntimeHealth
impl UnwindSafe for RuntimeHealth
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