#[repr(C)]pub union sockaddr_t {
pub v4: sockaddr_in,
pub v6: sockaddr_in6,
}Fields§
§v4: sockaddr_in§v6: sockaddr_in6Implementations§
Source§impl sockaddr_t
impl sockaddr_t
pub fn as_ptr(&self) -> *const sockaddr
pub fn from_socket_addr(addr: &SocketAddr) -> (Self, socklen_t)
Trait Implementations§
Source§impl Clone for sockaddr_t
impl Clone for sockaddr_t
Source§fn clone(&self) -> sockaddr_t
fn clone(&self) -> sockaddr_t
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for sockaddr_t
Auto Trait Implementations§
impl Freeze for sockaddr_t
impl RefUnwindSafe for sockaddr_t
impl Send for sockaddr_t
impl Sync for sockaddr_t
impl Unpin for sockaddr_t
impl UnwindSafe for sockaddr_t
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