Trait nix::sys::socket::GetSockOpt

source ·
pub trait GetSockOpt: Copy {
    type Val;

    // Required method
    fn get(&self, fd: RawFd) -> Result<Self::Val>;
}
Expand description

Represents a socket option that can be retrieved.

Required Associated Types§

Required Methods§

source

fn get(&self, fd: RawFd) -> Result<Self::Val>

Look up the value of this socket option on the given socket.

Object Safety§

This trait is not object safe.

Implementors§