Enum IpAddr
enum IpAddr
no_std implementation of std::net::IpAddr.
Note: because we intend to replace this type with core::net::IpAddr as soon as it is
stabilized, the identity of this type should not be considered semver-stable. However, the
attached interfaces are stable; they form a subset of those provided by core::net::IpAddr.
Variants
-
V4(Ipv4Addr) An Ipv4 address.
-
V6(Ipv6Addr) An Ipv6 address.
Implementations
impl Clone for IpAddr
fn clone(self: &Self) -> IpAddr
impl Copy for IpAddr
impl Debug for IpAddr
fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result
impl Eq for IpAddr
impl Freeze for IpAddr
impl From for IpAddr
fn from(addr: IpAddr) -> Self
impl From for IpAddr
fn from(v6: Ipv6Addr) -> Self
impl From for IpAddr
fn from(v4: Ipv4Addr) -> Self
impl Hash for IpAddr
fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)
impl PartialEq for IpAddr
fn eq(self: &Self, other: &IpAddr) -> bool
impl RefUnwindSafe for IpAddr
impl Send for IpAddr
impl StructuralPartialEq for IpAddr
impl Sync for IpAddr
impl TryFrom for IpAddr
fn try_from(value: &str) -> Result<Self, <Self as >::Error>
impl Unpin for IpAddr
impl UnwindSafe for IpAddr
impl<T> Any for IpAddr
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for IpAddr
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for IpAddr
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> CloneToUninit for IpAddr
unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)
impl<T> From for IpAddr
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for IpAddr
fn to_owned(self: &Self) -> Tfn clone_into(self: &Self, target: &mut T)
impl<T, U> Into for IpAddr
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for IpAddr
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for IpAddr
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>