Trait GetSocketOption

Source
pub trait GetSocketOption<P>: SocketOption<P> + Default {
    // Required method
    fn data_mut(&mut self) -> &mut Self::Data;

    // Provided methods
    fn capacity(&self) -> usize { ... }
    fn resize(&mut self, _size: usize) { ... }
}

Required Methods§

Source

fn data_mut(&mut self) -> &mut Self::Data

Provided Methods§

Source

fn capacity(&self) -> usize

Source

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§