Trait nix::sys::socket::GetSockOpt

pub trait GetSockOpt: Copy {    
    type Val;
    
    fn get(&Self, fd: RawFd) -> Result<Self::Val>;
}
Documentation

Represents a socket option that can be retrieved.

Associated Types

type Val

Required Methods

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

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

Implementors

impl GetSockOpt for AcceptConn
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for BindToDevice
type Val = OsString
fn get(&Self, fd: RawFd) -> Result<OsString>
impl GetSockOpt for Broadcast
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ip6tOriginalDst
type Val = sockaddr_in6
fn get(&Self, fd: RawFd) -> Result<libc::sockaddr_in6>
impl GetSockOpt for IpFreebind
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for IpMulticastLoop
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for IpMulticastTtl
type Val = u8
fn get(&Self, fd: RawFd) -> Result<u8>
impl GetSockOpt for IpTransparent
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ipv4PacketInfo
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ipv4RecvErr
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ipv4Ttl
type Val = i32
fn get(&Self, fd: RawFd) -> Result<libc::c_int>
impl GetSockOpt for Ipv6RecvErr
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ipv6RecvPacketInfo
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Ipv6Ttl
type Val = i32
fn get(&Self, fd: RawFd) -> Result<libc::c_int>
impl GetSockOpt for Ipv6V6Only
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for KeepAlive
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for Linger
type Val = linger
fn get(&Self, fd: RawFd) -> Result<libc::linger>
impl GetSockOpt for Mark
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for OobInline
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for OriginalDst
type Val = sockaddr_in
fn get(&Self, fd: RawFd) -> Result<libc::sockaddr_in>
impl GetSockOpt for PassCred
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for RcvBuf
type Val = usize
fn get(&Self, fd: RawFd) -> Result<usize>
impl GetSockOpt for ReceiveTimeout
type Val = TimeVal
fn get(&Self, fd: RawFd) -> Result<TimeVal>
impl GetSockOpt for ReceiveTimestamp
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for ReceiveTimestampns
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for ReuseAddr
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for ReusePort
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for RxqOvfl
type Val = i32
fn get(&Self, fd: RawFd) -> Result<libc::c_int>
impl GetSockOpt for SendTimeout
type Val = TimeVal
fn get(&Self, fd: RawFd) -> Result<TimeVal>
impl GetSockOpt for SndBuf
type Val = usize
fn get(&Self, fd: RawFd) -> Result<usize>
impl GetSockOpt for SockType
type Val = SockType
fn get(&Self, fd: RawFd) -> Result<super::SockType>
impl GetSockOpt for SocketError
type Val = i32
fn get(&Self, fd: RawFd) -> Result<i32>
impl GetSockOpt for TcpCongestion
type Val = OsString
fn get(&Self, fd: RawFd) -> Result<OsString>
impl GetSockOpt for TcpKeepCount
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for TcpKeepIdle
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for TcpKeepInterval
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for TcpMaxSeg
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for TcpNoDelay
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for TcpRepair
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for TcpUserTimeout
type Val = u32
fn get(&Self, fd: RawFd) -> Result<u32>
impl GetSockOpt for UdpGroSegment
type Val = bool
fn get(&Self, fd: RawFd) -> Result<bool>
impl GetSockOpt for UdpGsoSegment
type Val = i32
fn get(&Self, fd: RawFd) -> Result<libc::c_int>