pub struct So9SocketAddr(/* private fields */);Expand description
An FFI template and implementation of the libc::sockaddr_storage and its size.
Implementations§
Source§impl So9SocketAddr
impl So9SocketAddr
pub fn get_sa_fam(&self) -> sa_family_t
pub fn get_len(&self) -> socklen_t
Trait Implementations§
Source§impl Debug for So9SocketAddr
impl Debug for So9SocketAddr
Source§impl Default for So9SocketAddr
impl Default for So9SocketAddr
Source§impl From<&SocketAddr> for So9SocketAddr
impl From<&SocketAddr> for So9SocketAddr
Source§fn from(inp_sa: &SocketAddr) -> Self
fn from(inp_sa: &SocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<&SocketAddrV4> for So9SocketAddr
impl From<&SocketAddrV4> for So9SocketAddr
Source§fn from(socket_addr_v4: &SocketAddrV4) -> Self
fn from(socket_addr_v4: &SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl From<&SocketAddrV6> for So9SocketAddr
impl From<&SocketAddrV6> for So9SocketAddr
Source§fn from(socket_addr_v6: &SocketAddrV6) -> Self
fn from(socket_addr_v6: &SocketAddrV6) -> Self
Converts to this type from the input type.
Source§impl From<&UnixSocketAddr> for So9SocketAddr
impl From<&UnixSocketAddr> for So9SocketAddr
Source§fn from(un: &UnixSocketAddr) -> Self
fn from(un: &UnixSocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddr> for So9SocketAddr
impl From<SocketAddr> for So9SocketAddr
Source§fn from(inp_sa: SocketAddr) -> Self
fn from(inp_sa: SocketAddr) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV4> for So9SocketAddr
impl From<SocketAddrV4> for So9SocketAddr
Source§fn from(inp_sa: SocketAddrV4) -> Self
fn from(inp_sa: SocketAddrV4) -> Self
Converts to this type from the input type.
Source§impl From<SocketAddrV6> for So9SocketAddr
impl From<SocketAddrV6> for So9SocketAddr
Source§fn from(inp_sa: SocketAddrV6) -> Self
fn from(inp_sa: SocketAddrV6) -> Self
Converts to this type from the input type.
Source§impl From<UnixSocketAddr> for So9SocketAddr
impl From<UnixSocketAddr> for So9SocketAddr
Source§fn from(un: UnixSocketAddr) -> Self
fn from(un: UnixSocketAddr) -> Self
Converts to this type from the input type.
Source§impl TryFrom<So9SocketAddr> for SocketAddr
impl TryFrom<So9SocketAddr> for SocketAddr
Source§impl TryFrom<So9SocketAddr> for SocketAddrV4
impl TryFrom<So9SocketAddr> for SocketAddrV4
Source§impl TryFrom<So9SocketAddr> for SocketAddrV6
impl TryFrom<So9SocketAddr> for SocketAddrV6
Source§impl TryFrom<So9SocketAddr> for UnixSocketAddr
impl TryFrom<So9SocketAddr> for UnixSocketAddr
Auto Trait Implementations§
impl Freeze for So9SocketAddr
impl RefUnwindSafe for So9SocketAddr
impl Send for So9SocketAddr
impl Sync for So9SocketAddr
impl Unpin for So9SocketAddr
impl UnsafeUnpin for So9SocketAddr
impl UnwindSafe for So9SocketAddr
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