Trait SockAddr

Source
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§

Source

fn as_ref(&self) -> &Self::SockAddr

Source

unsafe fn as_mut(&mut self) -> &mut Self::SockAddr

Source

fn capacity(&self) -> usize

Source

fn size(&self) -> usize

Source

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.

Implementors§