pub struct MeshStatus {
pub state: MeshState,
pub peer_count: usize,
pub node_id: String,
pub uptime: Duration,
}Expand description
Point-in-time snapshot of mesh status.
Fields§
§state: MeshStateCurrent lifecycle state.
peer_count: usizeNumber of connected peers.
node_id: StringThis node’s identifier.
uptime: DurationTime since the mesh was started.
Trait Implementations§
Source§impl Clone for MeshStatus
impl Clone for MeshStatus
Source§fn clone(&self) -> MeshStatus
fn clone(&self) -> MeshStatus
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MeshStatus
impl RefUnwindSafe for MeshStatus
impl Send for MeshStatus
impl Sync for MeshStatus
impl Unpin for MeshStatus
impl UnsafeUnpin for MeshStatus
impl UnwindSafe for MeshStatus
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