[−][src]Struct cjdns_core::PathHop
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]
label_p: Option<RoutingLabel<L>>,
label_n: Option<RoutingLabel<L>>,
encoding_scheme: &'a EncodingScheme
) -> Self
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,
L: RefUnwindSafe,
impl<'a, L> Send for PathHop<'a, L> where
L: Send,
L: Send,
impl<'a, L> Sync for PathHop<'a, L> where
L: Sync,
L: Sync,
impl<'a, L> Unpin for PathHop<'a, L> where
L: Unpin,
L: Unpin,
impl<'a, L> UnwindSafe for PathHop<'a, L> where
L: UnwindSafe,
L: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,