pub struct ElectionParametersTLV {
pub flags: u8,
pub id: u16,
pub distance_to_master: u8,
pub master_address: MACAddress,
pub master_metric: u32,
pub self_metric: u32,
}Expand description
A TLV describing the election parameters of a peer.
Fields§
§flags: u8Unknown
id: u16Unknown
distance_to_master: u8Distance to the mesh master
master_address: MACAddressAddress of the master
master_metric: u32Self metric of the master
self_metric: u32Own self metric
Implementations§
Source§impl ElectionParametersTLV
impl ElectionParametersTLV
pub const fn size_in_bytes() -> usize
Trait Implementations§
Source§impl AwdlTlv for ElectionParametersTLV
impl AwdlTlv for ElectionParametersTLV
const TLV_TYPE: AWDLTLVType = AWDLTLVType::ElectionParameters
Source§impl Clone for ElectionParametersTLV
impl Clone for ElectionParametersTLV
Source§fn clone(&self) -> ElectionParametersTLV
fn clone(&self) -> ElectionParametersTLV
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 ElectionParametersTLV
impl Debug for ElectionParametersTLV
Source§impl Default for ElectionParametersTLV
impl Default for ElectionParametersTLV
Source§fn default() -> ElectionParametersTLV
fn default() -> ElectionParametersTLV
Returns the “default value” for a type. Read more
Source§impl Hash for ElectionParametersTLV
impl Hash for ElectionParametersTLV
Source§impl MeasureWith<()> for ElectionParametersTLV
impl MeasureWith<()> for ElectionParametersTLV
Source§fn measure_with(&self, _ctx: &()) -> usize
fn measure_with(&self, _ctx: &()) -> usize
How large is
Self, given the ctx?Source§impl PartialEq for ElectionParametersTLV
impl PartialEq for ElectionParametersTLV
Source§impl<'a> TryFromCtx<'a> for ElectionParametersTLV
impl<'a> TryFromCtx<'a> for ElectionParametersTLV
Source§impl TryIntoCtx for ElectionParametersTLV
impl TryIntoCtx for ElectionParametersTLV
impl Copy for ElectionParametersTLV
impl Eq for ElectionParametersTLV
impl StructuralPartialEq for ElectionParametersTLV
Auto Trait Implementations§
impl Freeze for ElectionParametersTLV
impl RefUnwindSafe for ElectionParametersTLV
impl Send for ElectionParametersTLV
impl Sync for ElectionParametersTLV
impl Unpin for ElectionParametersTLV
impl UnwindSafe for ElectionParametersTLV
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