[][src]Struct cjdns_core::PathHop

pub struct PathHop<'a, L: LabelBits> {
    pub label_p: Option<RoutingLabel<L>>,
    pub label_n: Option<RoutingLabel<L>>,
    pub encoding_scheme: &'a EncodingScheme,
}

An intermediate node in a path between the two nodes.

Fields

label_p: Option<RoutingLabel<L>>

Label for a director to the previous hop.

Must be None if it's a starting hop (i.e. packet sender node). Knowing the label is important for reverse label creation. For more info pls refer to build_label function docs.

label_n: Option<RoutingLabel<L>>

Label for a director to the next hop.

Must be None if it's a final hop (i.e. destination node).

encoding_scheme: &'a EncodingScheme

Encoding scheme used by the current node.

Implementations

impl<'a, L: LabelBits> PathHop<'a, L>[src]

pub fn new(
    label_p: Option<RoutingLabel<L>>,
    label_n: Option<RoutingLabel<L>>,
    encoding_scheme: &'a EncodingScheme
) -> Self
[src]

New instance

Trait Implementations

impl<'a, L: Debug + LabelBits> Debug for PathHop<'a, L>[src]

impl<'a, L: Eq + LabelBits> Eq for PathHop<'a, L>[src]

impl<'a, L: PartialEq + LabelBits> PartialEq<PathHop<'a, L>> for PathHop<'a, L>[src]

impl<'a, L: LabelBits> StructuralEq for PathHop<'a, L>[src]

impl<'a, L: LabelBits> StructuralPartialEq for PathHop<'a, L>[src]

Auto Trait Implementations

impl<'a, L> RefUnwindSafe for PathHop<'a, L> where
    L: RefUnwindSafe

impl<'a, L> Send for PathHop<'a, L> where
    L: Send

impl<'a, L> Sync for PathHop<'a, L> where
    L: Sync

impl<'a, L> Unpin for PathHop<'a, L> where
    L: Unpin

impl<'a, L> UnwindSafe for PathHop<'a, L> where
    L: UnwindSafe

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, U> Into<U> for T where
    U: From<T>, 
[src]

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.