pub enum IpAddressType {
Ipv4,
Ipv6,
Ipv4AndIpv6,
Invalid,
Unknown(u32),
}Expand description
Network-address family selected by a versioned media layout.
Variants§
Ipv4
Ipv6
Ipv4AndIpv6
Invalid
Unknown(u32)
Preserves an SCCP numeric value not recognized by this crate. Allows newer or vendor-specific values to round-trip without loss.
Implementations§
Trait Implementations§
Source§impl Clone for IpAddressType
impl Clone for IpAddressType
Source§fn clone(&self) -> IpAddressType
fn clone(&self) -> IpAddressType
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 moreimpl Copy for IpAddressType
Source§impl Debug for IpAddressType
impl Debug for IpAddressType
impl Eq for IpAddressType
Source§impl From<IpAddressType> for u32
impl From<IpAddressType> for u32
Source§fn from(value: IpAddressType) -> Self
fn from(value: IpAddressType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for IpAddressType
impl From<u32> for IpAddressType
Source§impl Hash for IpAddressType
impl Hash for IpAddressType
Source§impl PartialEq for IpAddressType
impl PartialEq for IpAddressType
impl StructuralPartialEq for IpAddressType
Auto Trait Implementations§
impl Freeze for IpAddressType
impl RefUnwindSafe for IpAddressType
impl Send for IpAddressType
impl Sync for IpAddressType
impl Unpin for IpAddressType
impl UnsafeUnpin for IpAddressType
impl UnwindSafe for IpAddressType
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