Struct bgpkit_parser::Asn
source · pub struct Asn {
pub asn: u32,
pub len: AsnLength,
}
Expand description
ASN – Autonomous System Number
Fields§
§asn: u32
§len: AsnLength
Trait Implementations§
source§impl Serialize for Asn
impl Serialize for Asn
source§fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>( &self, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for Asn
impl Eq for Asn
impl StructuralEq for Asn
Auto Trait Implementations§
impl RefUnwindSafe for Asn
impl Send for Asn
impl Sync for Asn
impl Unpin for Asn
impl UnwindSafe for Asn
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.