pub struct SockAddrStorage { /* private fields */ }
Expand description
Rust version of the sockaddr_storage
type.
This type is intended to be used with with direct calls to the getsockname
syscall. See the
documentation of SockAddr::new
for examples.
This crate defines its own sockaddr_storage
type to avoid semver concerns with upgrading
windows-sys
.
Implementations§
Source§impl SockAddrStorage
impl SockAddrStorage
Sourcepub fn zeroed() -> SockAddrStorage
pub fn zeroed() -> SockAddrStorage
Construct a new storage containing all zeros.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SockAddrStorage
impl RefUnwindSafe for SockAddrStorage
impl Send for SockAddrStorage
impl Sync for SockAddrStorage
impl Unpin for SockAddrStorage
impl UnwindSafe for SockAddrStorage
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