Trait nix::sys::socket::GetSockOpt

source ·
pub trait GetSockOpt: Copy {
    type Val;

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

Represents a socket option that can be retrieved.

Required Associated Types§

Required Methods§

source

fn get<F: AsFd>(&self, fd: &F) -> 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 IpBindAddressNoPort

source§

impl GetSockOpt for IpFreebind

source§

impl GetSockOpt for IpMtu

source§

impl GetSockOpt for IpMulticastLoop

source§

impl GetSockOpt for IpMulticastTtl

source§

impl GetSockOpt for IpRecvTos

source§

impl GetSockOpt for IpTos

source§

impl GetSockOpt for IpTransparent

source§

impl GetSockOpt for Ipv4OrigDstAddr

source§

impl GetSockOpt for Ipv4PacketInfo

source§

impl GetSockOpt for Ipv4RecvErr

source§

impl GetSockOpt for Ipv4RecvTtl

source§

impl GetSockOpt for Ipv4Tos

source§

impl GetSockOpt for Ipv4Ttl

source§

impl GetSockOpt for Ipv6DontFrag

source§

impl GetSockOpt for Ipv6MulticastHops

source§

impl GetSockOpt for Ipv6OrigDstAddr

source§

impl GetSockOpt for Ipv6PacketInfo

source§

impl GetSockOpt for Ipv6RecvErr

source§

impl GetSockOpt for Ipv6RecvHopLimit

source§

impl GetSockOpt for Ipv6RecvPacketInfo

source§

impl GetSockOpt for Ipv6RecvTClass

source§

impl GetSockOpt for Ipv6TClass

source§

impl GetSockOpt for Ipv6Ttl

source§

impl GetSockOpt for Ipv6V6Only

source§

impl GetSockOpt for KeepAlive

source§

impl GetSockOpt for Linger

source§

impl GetSockOpt for Mark

source§

impl GetSockOpt for OobInline

source§

impl GetSockOpt for OriginalDst

source§

impl GetSockOpt for PassCred

source§

impl GetSockOpt for PeerCredentials

source§

impl GetSockOpt for Priority

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 TcpCongestion

source§

impl GetSockOpt for TcpFastOpenConnect

source§

impl GetSockOpt for TcpKeepCount

source§

impl GetSockOpt for TcpKeepIdle

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

source§

impl GetSockOpt for Timestamping

source§

impl GetSockOpt for TxTime

source§

impl GetSockOpt for UdpGroSegment

source§

impl GetSockOpt for UdpGsoSegment