nix::sys::socket

Trait 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.

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§

Source§

impl GetSockOpt for AcceptConn

Source§

impl GetSockOpt for Broadcast

Source§

impl GetSockOpt for DontRoute

Source§

impl GetSockOpt for IpFreebind

Source§

impl GetSockOpt for IpMulticastLoop

Source§

impl GetSockOpt for IpMulticastTtl

Source§

impl GetSockOpt for Ipv6V6Only

Source§

impl GetSockOpt for KeepAlive

Source§

impl GetSockOpt for Linger

Source§

impl GetSockOpt for OobInline

Source§

impl GetSockOpt for RcvBuf

Source§

impl GetSockOpt for ReceiveTimeout

Source§

impl GetSockOpt for ReceiveTimestamp

Source§

impl GetSockOpt for ReuseAddr

Source§

impl GetSockOpt for ReusePort

Source§

impl GetSockOpt for RxqOvfl

Source§

impl GetSockOpt for SendTimeout

Source§

impl GetSockOpt for SndBuf

Source§

impl GetSockOpt for SockType

Source§

impl GetSockOpt for SocketError

Source§

impl GetSockOpt for TcpKeepCount

Source§

impl GetSockOpt for TcpKeepInterval

Source§

impl GetSockOpt for TcpMaxSeg

Source§

impl GetSockOpt for TcpNoDelay

Source§

impl GetSockOpt for TcpRepair

Source§

impl GetSockOpt for TcpUserTimeout