pub struct AnnounceRequest {
pub kind: AnnouncementKind,
pub flood_hops: u8,
pub full_source: bool,
pub channel_key: Option<[u8; 32]>,
}Expand description
A validated CMD_ANNOUNCE request (see Effect::Announce).
The channel option arrives as an identifier and leaves as the provisioned key it named: the session is where the device’s channel keys live, and the node behind it addresses a channel by key.
Fields§
§kind: AnnouncementKindWhether to send the signed node identity or a bare beacon.
flood_hops: u8The flood budget. Zero reaches only direct neighbors.
full_source: boolWhether SRC carries the full public key rather than the hint.
channel_key: Option<[u8; 32]>The device channel to send on, or None for a broadcast.
Trait Implementations§
Source§impl Clone for AnnounceRequest
impl Clone for AnnounceRequest
Source§fn clone(&self) -> AnnounceRequest
fn clone(&self) -> AnnounceRequest
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnnounceRequest
impl Debug for AnnounceRequest
Source§impl PartialEq for AnnounceRequest
impl PartialEq for AnnounceRequest
impl Copy for AnnounceRequest
impl Eq for AnnounceRequest
impl StructuralPartialEq for AnnounceRequest
Auto Trait Implementations§
impl Freeze for AnnounceRequest
impl RefUnwindSafe for AnnounceRequest
impl Send for AnnounceRequest
impl Sync for AnnounceRequest
impl Unpin for AnnounceRequest
impl UnwindSafe for AnnounceRequest
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)