pub struct Addr { /* private fields */ }Implementations§
Source§impl Addr
impl Addr
pub fn empty() -> Self
pub fn ptr(&self) -> *const sockaddr
pub fn mut_ptr(&mut self) -> *mut sockaddr
pub fn socklen(&self) -> socklen_t
pub fn len_ptr(&mut self) -> *mut socklen_t
pub fn from_std(addr: SocketAddr) -> Self
pub fn from_unix_path(path: &Path) -> Result<Self>
pub fn from_getsockname(fd: RawFd) -> Result<Self>
pub fn parse_msg_name(name: &[u8]) -> Option<SocketAddr>
pub fn into_std(self) -> Result<SocketAddr>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Addr
impl RefUnwindSafe for Addr
impl Send for Addr
impl Sync for Addr
impl Unpin for Addr
impl UnsafeUnpin for Addr
impl UnwindSafe for Addr
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