Enum hermit_abi::IpAddress
source · pub enum IpAddress {
Unspecified,
Ipv4(Ipv4Address),
Ipv6(Ipv6Address),
}
Expand description
An internetworking address.
Variants§
Unspecified
An unspecified address. May be used as a placeholder for storage where the address is not assigned yet.
Ipv4(Ipv4Address)
An IPv4 address.
Ipv6(Ipv6Address)
An IPv6 address.
Trait Implementations§
source§impl Ord for IpAddress
impl Ord for IpAddress
source§impl PartialEq<IpAddress> for IpAddress
impl PartialEq<IpAddress> for IpAddress
source§impl PartialOrd<IpAddress> for IpAddress
impl PartialOrd<IpAddress> for IpAddress
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for IpAddress
impl Eq for IpAddress
impl StructuralEq for IpAddress
impl StructuralPartialEq for IpAddress
Auto Trait Implementations§
impl RefUnwindSafe for IpAddress
impl Send for IpAddress
impl Sync for IpAddress
impl Unpin for IpAddress
impl UnwindSafe for IpAddress
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