pub struct HelloPayload {
pub node_name: Name,
pub served_prefixes: Vec<Name>,
pub capabilities: u8,
pub neighbor_diffs: Vec<NeighborDiff>,
pub public_key: Option<Bytes>,
pub unicast_port: Option<u16>,
}Expand description
Payload carried in the Content of a hello Data packet.
Fields§
§node_name: NameMandatory: the sender’s NDN node name.
served_prefixes: Vec<Name>Prefixes this node produces (for service discovery bootstrapping).
capabilities: u8Advisory capability flags (see CAP_* constants).
neighbor_diffs: Vec<NeighborDiff>SWIM gossip diffs piggybacked on this hello.
public_key: Option<Bytes>Raw 32-byte Ed25519 public key (self-attesting signed hellos). When present, the hello Data is signed by the corresponding private key and receivers can verify without any certificate infrastructure.
unicast_port: Option<u16>UDP unicast listen port. When present, receivers should create their
unicast face to <sender-ip>:<unicast_port> rather than to the
source port of the hello packet (which may be the multicast port).
Implementations§
Source§impl HelloPayload
impl HelloPayload
Trait Implementations§
Source§impl Clone for HelloPayload
impl Clone for HelloPayload
Source§fn clone(&self) -> HelloPayload
fn clone(&self) -> HelloPayload
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for HelloPayload
impl RefUnwindSafe for HelloPayload
impl Send for HelloPayload
impl Sync for HelloPayload
impl Unpin for HelloPayload
impl UnwindSafe for HelloPayload
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