pub struct Link {Show 15 fields
pub carrier_refusals: Vec<String>,
pub carried_by: Option<String>,
pub id: String,
pub name: String,
pub kind: LinkKind,
pub state: LinkState,
pub carrier: Option<Carrier>,
pub relayed: Option<String>,
pub reason: Option<String>,
pub crossed: Option<u64>,
pub refused: Option<u64>,
pub already_crossed: Option<u64>,
pub lifecycle: Option<LinkLifeCounters>,
pub rtt_ms: Option<u64>,
pub ends: [String; 2],
}Expand description
A cluster or federated link, with only observed network facts.
Fields§
§carrier_refusals: Vec<String>Carrier refusals retained across later observations.
carried_by: Option<String>The device carrying a relayed link.
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.
carrier: Option<Carrier>The transport carrying this link, when observed.
relayed: Option<String>The relaying device, only for a relay carrier.
reason: Option<String>The cause of a down link, when observed.
crossed: Option<u64>Observed crossings; absent when no source counts them.
refused: Option<u64>Observed refusals; absent when no source counts them.
already_crossed: Option<u64>Crossings answered from an existing receipt.
lifecycle: Option<LinkLifeCounters>Observed opens and ends by carrier cause.
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<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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
key and return true if they are equal.