pub trait SockAddr:
Clone
+ Send
+ 'static {
type SockAddr: ?Sized;
// Required methods
fn as_ref(&self) -> &Self::SockAddr;
unsafe fn as_mut(&mut self) -> &mut Self::SockAddr;
fn capacity(&self) -> usize;
fn size(&self) -> usize;
unsafe fn resize(&mut self, size: usize);
}
Required Associated Types§
Required Methods§
fn as_ref(&self) -> &Self::SockAddr
unsafe fn as_mut(&mut self) -> &mut Self::SockAddr
fn capacity(&self) -> usize
fn size(&self) -> usize
unsafe fn resize(&mut self, size: usize)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.