Variants
V4(libc::sockaddr_in)
libc::sockaddr_in
V6(libc::sockaddr_in6)
libc::sockaddr_in6
Implementations
impl InetAddr
pub fn from_std(std: &net::SocketAddr) -> InetAddr
pub const fn port(&Self) -> u16
Gets the port number associated with this socket address
pub fn to_std(&Self) -> net::SocketAddr
Trait Implementations
impl Debug for InetAddr
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Display for InetAddr
fn fmt(&Self, f: &mut fmt::Formatter<'_>) -> fmt::Result
impl Hash for InetAddr
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl StructuralEq for InetAddr
impl StructuralPartialEq for InetAddr
Auto Trait Implementations
impl RefUnwindSafe for InetAddr
impl UnwindSafe for InetAddr
Blanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T