pub enum IpAddr {
V4(Ipv4Addr),
V6(Ipv6Addr),
}
Variants§
Implementations§
Source§impl IpAddr
impl IpAddr
Sourcepub fn is_unspecified(&self) -> bool
pub fn is_unspecified(&self) -> bool
Returns true
for the special ‘unspecified’ address.
Sourcepub fn is_loopback(&self) -> bool
pub fn is_loopback(&self) -> bool
Returns true
if this is a loopback address.
Sourcepub fn is_multicast(&self) -> bool
pub fn is_multicast(&self) -> bool
Returns true
if this is a multicast address.
Sourcepub fn is_documentation(&self) -> bool
pub fn is_documentation(&self) -> bool
Returns true
if this address is in a range designated for documentation.
Trait Implementations§
Source§impl From<EFI_IPv4_ADDRESS> for IpAddr
impl From<EFI_IPv4_ADDRESS> for IpAddr
Source§fn from(ipv4: EFI_IPv4_ADDRESS) -> IpAddr
fn from(ipv4: EFI_IPv4_ADDRESS) -> IpAddr
Converts to this type from the input type.
Source§impl From<EFI_IPv6_ADDRESS> for IpAddr
impl From<EFI_IPv6_ADDRESS> for IpAddr
Source§fn from(ipv6: EFI_IPv6_ADDRESS) -> IpAddr
fn from(ipv6: EFI_IPv6_ADDRESS) -> IpAddr
Converts to this type from the input type.
Source§impl From<IpAddr> for EFI_IP_ADDRESS
impl From<IpAddr> for EFI_IP_ADDRESS
Source§fn from(ip: IpAddr) -> EFI_IP_ADDRESS
fn from(ip: IpAddr) -> EFI_IP_ADDRESS
Converts to this type from the input type.
Source§impl PartialOrd<IpAddr> for Ipv4Addr
impl PartialOrd<IpAddr> for Ipv4Addr
Source§impl PartialOrd<IpAddr> for Ipv6Addr
impl PartialOrd<IpAddr> for Ipv6Addr
Source§impl PartialOrd<Ipv4Addr> for IpAddr
impl PartialOrd<Ipv4Addr> for IpAddr
Source§impl PartialOrd<Ipv6Addr> for IpAddr
impl PartialOrd<Ipv6Addr> for IpAddr
impl Copy for IpAddr
impl Eq for IpAddr
impl StructuralPartialEq for IpAddr
Auto Trait Implementations§
impl Freeze for IpAddr
impl RefUnwindSafe for IpAddr
impl Send for IpAddr
impl Sync for IpAddr
impl Unpin for IpAddr
impl UnwindSafe for IpAddr
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