[][src]Struct cjdns_snode::server::link::Link

pub(super) struct Link {
    pub(super) label: RoutingLabel<u32>,
    pub(super) encoding_form_number: u8,
    pub(super) peer_num: u16,
    pub(super) link_state: Arc<Mutex<HashMap<u64, LinkStateEntry>>>,
    pub(super) create_time: u64,
    pub(super) mut_state: Arc<Mutex<LinkStateMut>>,
}

Fields

label: RoutingLabel<u32>encoding_form_number: u8peer_num: u16link_state: Arc<Mutex<HashMap<u64, LinkStateEntry>>>create_time: u64mut_state: Arc<Mutex<LinkStateMut>>

Implementations

impl Link[src]

pub(super) const DECAY_PER_TIMESLOT: f64[src]

Each timeslot is 10 seconds, link state value halves every 3 minutes.

Trait Implementations

impl Clone for Link[src]

Auto Trait Implementations

impl !RefUnwindSafe for Link

impl Send for Link

impl Sync for Link

impl Unpin for Link

impl !UnwindSafe for Link

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,