Struct bgpkit_parser::community::TwoOctetAsSpecific
source · pub struct TwoOctetAsSpecific {
pub ec_type: u8,
pub ec_subtype: u8,
pub global_administrator: Asn,
pub local_administrator: [u8; 4],
}
Expand description
Two-Octet AS Specific Extended Community
Fields§
§ec_type: u8
§ec_subtype: u8
§global_administrator: Asn
§local_administrator: [u8; 4]
Trait Implementations§
source§impl Clone for TwoOctetAsSpecific
impl Clone for TwoOctetAsSpecific
source§fn clone(&self) -> TwoOctetAsSpecific
fn clone(&self) -> TwoOctetAsSpecific
Returns a copy 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 TwoOctetAsSpecific
impl Debug for TwoOctetAsSpecific
source§impl PartialEq<TwoOctetAsSpecific> for TwoOctetAsSpecific
impl PartialEq<TwoOctetAsSpecific> for TwoOctetAsSpecific
source§fn eq(&self, other: &TwoOctetAsSpecific) -> bool
fn eq(&self, other: &TwoOctetAsSpecific) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for TwoOctetAsSpecific
impl Eq for TwoOctetAsSpecific
impl StructuralEq for TwoOctetAsSpecific
impl StructuralPartialEq for TwoOctetAsSpecific
Auto Trait Implementations§
impl RefUnwindSafe for TwoOctetAsSpecific
impl Send for TwoOctetAsSpecific
impl Sync for TwoOctetAsSpecific
impl Unpin for TwoOctetAsSpecific
impl UnwindSafe for TwoOctetAsSpecific
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.