pub struct PeerReachability {
pub name: String,
pub reachable: bool,
pub rtt_ms: Option<u64>,
pub age_secs: Option<u64>,
}Expand description
Advisory reachability of a paired peer (spec: pairing-mode liveness). Surface-clean (§1.5): a petname + a bool + latency/age NUMBERS — never an endpoint-id, key, or transport path.
Fields§
§name: String§reachable: bool§rtt_ms: Option<u64>§age_secs: Option<u64>Trait Implementations§
Source§impl Clone for PeerReachability
impl Clone for PeerReachability
Source§fn clone(&self) -> PeerReachability
fn clone(&self) -> PeerReachability
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 PeerReachability
impl Debug for PeerReachability
Source§impl<'de> Deserialize<'de> for PeerReachability
impl<'de> Deserialize<'de> for PeerReachability
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
impl Eq for PeerReachability
Source§impl PartialEq for PeerReachability
impl PartialEq for PeerReachability
Source§impl Serialize for PeerReachability
impl Serialize for PeerReachability
impl StructuralPartialEq for PeerReachability
Auto Trait Implementations§
impl Freeze for PeerReachability
impl RefUnwindSafe for PeerReachability
impl Send for PeerReachability
impl Sync for PeerReachability
impl Unpin for PeerReachability
impl UnsafeUnpin for PeerReachability
impl UnwindSafe for PeerReachability
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