pub struct DfElectionExtendedCommunity {
pub algorithm_id: u8,
pub capabilities: u16,
pub preference: Option<u16>,
}Expand description
Decoded DF Election Extended Community (RFC 8584 / RFC 9785).
Fields§
§algorithm_id: u8Five-bit DF algorithm ID.
capabilities: u16Two-octet capability bitmap.
preference: Option<u16>DF Preference. Defined only for RFC 9785 preference algorithms;
None for DefaultModulo/HRW where the trailing bytes are reserved.
Trait Implementations§
Source§impl Clone for DfElectionExtendedCommunity
impl Clone for DfElectionExtendedCommunity
Source§fn clone(&self) -> DfElectionExtendedCommunity
fn clone(&self) -> DfElectionExtendedCommunity
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 DfElectionExtendedCommunity
impl Debug for DfElectionExtendedCommunity
Source§impl PartialEq for DfElectionExtendedCommunity
impl PartialEq for DfElectionExtendedCommunity
Source§fn eq(&self, other: &DfElectionExtendedCommunity) -> bool
fn eq(&self, other: &DfElectionExtendedCommunity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for DfElectionExtendedCommunity
impl Eq for DfElectionExtendedCommunity
impl StructuralPartialEq for DfElectionExtendedCommunity
Auto Trait Implementations§
impl Freeze for DfElectionExtendedCommunity
impl RefUnwindSafe for DfElectionExtendedCommunity
impl Send for DfElectionExtendedCommunity
impl Sync for DfElectionExtendedCommunity
impl Unpin for DfElectionExtendedCommunity
impl UnsafeUnpin for DfElectionExtendedCommunity
impl UnwindSafe for DfElectionExtendedCommunity
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