pub struct Link {
pub id: String,
pub name: String,
pub kind: LinkKind,
pub state: LinkState,
pub rtt_ms: Option<u64>,
pub ends: [String; 2],
}Expand description
A link to a cluster peer, present while the peer is.
Fields§
§id: StringThe link id, <this device>~<peer>.
name: StringThe peer’s name as shown.
kind: LinkKindHow the two devices are joined.
state: LinkStateThe link’s state.
rtt_ms: Option<u64>Round trip in milliseconds. No source: always null, never 0.
ends: [String; 2]The two device ids it joins, in sorted order, so the same link has the same bytes whichever end publishes it.
Implementations§
Trait Implementations§
impl Eq for Link
impl StructuralPartialEq for Link
Auto Trait Implementations§
impl Freeze for Link
impl RefUnwindSafe for Link
impl Send for Link
impl Sync for Link
impl Unpin for Link
impl UnsafeUnpin for Link
impl UnwindSafe for Link
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.