pub struct RouteUpdateFrame {
pub origin_id: NodeId,
pub sequence: u64,
pub entries: Vec<RouteEntry>,
pub signature: [u8; 64],
}Expand description
Route advertisement broadcast to direct peers.
Layout: origin_id(16) + sequence(8) + entry_count(2) + entries(N * 22) + signature(64)
Fields§
§origin_id: NodeIdNode originating this advertisement.
sequence: u64Monotonic sequence number used for replay protection.
entries: Vec<RouteEntry>Reachability entries being advertised.
signature: [u8; 64]Ed25519 signature over the frame contents.
Trait Implementations§
Source§impl Clone for RouteUpdateFrame
impl Clone for RouteUpdateFrame
Source§fn clone(&self) -> RouteUpdateFrame
fn clone(&self) -> RouteUpdateFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RouteUpdateFrame
impl Debug for RouteUpdateFrame
Source§impl FrameCodec for RouteUpdateFrame
impl FrameCodec for RouteUpdateFrame
Source§impl PartialEq for RouteUpdateFrame
impl PartialEq for RouteUpdateFrame
Source§fn eq(&self, other: &RouteUpdateFrame) -> bool
fn eq(&self, other: &RouteUpdateFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for RouteUpdateFrame
impl StructuralPartialEq for RouteUpdateFrame
Auto Trait Implementations§
impl Freeze for RouteUpdateFrame
impl RefUnwindSafe for RouteUpdateFrame
impl Send for RouteUpdateFrame
impl Sync for RouteUpdateFrame
impl Unpin for RouteUpdateFrame
impl UnsafeUnpin for RouteUpdateFrame
impl UnwindSafe for RouteUpdateFrame
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