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§

source§

impl GetSockOpt for AcceptConn

source§

impl GetSockOpt for BindToDevice

source§

impl GetSockOpt for Broadcast

source§

impl GetSockOpt for DontRoute

source§

impl GetSockOpt for Ip6tOriginalDst

source§

impl GetSockOpt for IpMtu

source§

impl GetSockOpt for Ipv4RecvErr

source§

impl GetSockOpt for Ipv4Ttl

source§

impl GetSockOpt for Ipv6DontFrag

source§

impl GetSockOpt for Ipv6RecvErr

source§

impl GetSockOpt for Ipv6Ttl

source§

impl GetSockOpt for KeepAlive

source§

impl GetSockOpt for Linger

source§

impl GetSockOpt for Mark

source§

impl GetSockOpt for OobInline

source§

impl GetSockOpt for PassCred

source§

impl GetSockOpt for PeerCredentials

source§

impl GetSockOpt for RcvBuf

source§

impl GetSockOpt for ReceiveTimeout

source§

impl GetSockOpt for ReceiveTimestamp

source§

impl GetSockOpt for ReceiveTimestampns

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 TcpMaxSeg

source§

impl GetSockOpt for TcpRepair

source§

impl GetSockOpt for Timestamping

source§

impl GetSockOpt for TxTime