pub struct ElectionParametersV2TLV {
pub master_address: MACAddress,
pub sync_address: MACAddress,
pub master_counter: u32,
pub distance_to_master: u32,
pub master_metric: u32,
pub self_metric: u32,
pub election_id: u32,
pub self_counter: u32,
}Expand description
Another TLV describing the election parameters of the peer.
Fields§
§master_address: MACAddressMAC address of the master
sync_address: MACAddressMAC address of the peer this peer is syncing to
master_counter: u32Counter value of the master
distance_to_master: u32Distance to the current master
master_metric: u32Metric of the master
self_metric: u32Self metric of the peer
election_id: u32Always zero, but found in some files.
self_counter: u32Self counter of the peer
Implementations§
Source§impl ElectionParametersV2TLV
impl ElectionParametersV2TLV
pub const fn size_in_bytes() -> usize
Trait Implementations§
Source§impl AwdlTlv for ElectionParametersV2TLV
impl AwdlTlv for ElectionParametersV2TLV
const TLV_TYPE: AWDLTLVType = AWDLTLVType::ElectionParametersV2
Source§impl Clone for ElectionParametersV2TLV
impl Clone for ElectionParametersV2TLV
Source§fn clone(&self) -> ElectionParametersV2TLV
fn clone(&self) -> ElectionParametersV2TLV
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 moreSource§impl Debug for ElectionParametersV2TLV
impl Debug for ElectionParametersV2TLV
Source§impl Default for ElectionParametersV2TLV
impl Default for ElectionParametersV2TLV
Source§fn default() -> ElectionParametersV2TLV
fn default() -> ElectionParametersV2TLV
Returns the “default value” for a type. Read more
Source§impl Hash for ElectionParametersV2TLV
impl Hash for ElectionParametersV2TLV
Source§impl MeasureWith<()> for ElectionParametersV2TLV
impl MeasureWith<()> for ElectionParametersV2TLV
Source§fn measure_with(&self, _ctx: &()) -> usize
fn measure_with(&self, _ctx: &()) -> usize
How large is
Self, given the ctx?Source§impl PartialEq for ElectionParametersV2TLV
impl PartialEq for ElectionParametersV2TLV
Source§impl<'a> TryFromCtx<'a> for ElectionParametersV2TLV
impl<'a> TryFromCtx<'a> for ElectionParametersV2TLV
Source§impl TryIntoCtx for ElectionParametersV2TLV
impl TryIntoCtx for ElectionParametersV2TLV
impl Copy for ElectionParametersV2TLV
impl Eq for ElectionParametersV2TLV
impl StructuralPartialEq for ElectionParametersV2TLV
Auto Trait Implementations§
impl Freeze for ElectionParametersV2TLV
impl RefUnwindSafe for ElectionParametersV2TLV
impl Send for ElectionParametersV2TLV
impl Sync for ElectionParametersV2TLV
impl Unpin for ElectionParametersV2TLV
impl UnwindSafe for ElectionParametersV2TLV
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