Struct swiss_army_knife::internet_protocol::InternetProtocolAddressWithMask [−][src]
#[repr(C)]pub struct InternetProtocolAddressWithMask<IPA: InternetProtocolAddress> { /* fields omitted */ }
Expand description
An Internet Protocol (IP) version 4 or version 4 address with a mask.
The order of fields and the size of fields is to maintain layout compatibility with the Linux type bpf_lpm_trie_key
.
Implementations
New instance.
Local host.
Mask length in bits.
Internet Protocol address.
Internet Protocol address (moved).
Trait Implementations
impl<'de, IPA: InternetProtocolAddress> Deserialize<'de> for InternetProtocolAddressWithMask<IPA> where
IPA: DeserializeOwned,
impl<'de, IPA: InternetProtocolAddress> Deserialize<'de> for InternetProtocolAddressWithMask<IPA> where
IPA: DeserializeOwned,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<IPA: PartialEq + InternetProtocolAddress> PartialEq<InternetProtocolAddressWithMask<IPA>> for InternetProtocolAddressWithMask<IPA>
impl<IPA: PartialEq + InternetProtocolAddress> PartialEq<InternetProtocolAddressWithMask<IPA>> for InternetProtocolAddressWithMask<IPA>
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
impl<IPA: InternetProtocolAddress> PartialOrd<InternetProtocolAddressWithMask<IPA>> for InternetProtocolAddressWithMask<IPA>
impl<IPA: InternetProtocolAddress> PartialOrd<InternetProtocolAddressWithMask<IPA>> for InternetProtocolAddressWithMask<IPA>
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
impl<IPA: InternetProtocolAddress> Serialize for InternetProtocolAddressWithMask<IPA> where
IPA: Serialize,
impl<IPA: InternetProtocolAddress> Serialize for InternetProtocolAddressWithMask<IPA> where
IPA: Serialize,
impl<IPA: InternetProtocolAddress> StructuralPartialEq for InternetProtocolAddressWithMask<IPA>
Auto Trait Implementations
impl<IPA> RefUnwindSafe for InternetProtocolAddressWithMask<IPA> where
IPA: RefUnwindSafe,
impl<IPA> Send for InternetProtocolAddressWithMask<IPA> where
IPA: Send,
impl<IPA> Sync for InternetProtocolAddressWithMask<IPA> where
IPA: Sync,
impl<IPA> Unpin for InternetProtocolAddressWithMask<IPA> where
IPA: Unpin,
impl<IPA> UnwindSafe for InternetProtocolAddressWithMask<IPA> where
IPA: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
impl<T> CallHasher for T where
T: Hash,
impl<T> CallHasher for T where
T: Hash,