Trait nix::sys::socket::SetSockOpt

source ·
pub trait SetSockOpt: Clone {
    type Val;

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

Represents a socket option that can be set.

Required Associated Types§

Required Methods§

source

fn set<F: AsFd>(&self, fd: &F, val: &Self::Val) -> Result<()>

Set the value of this socket option on the given socket.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl SetSockOpt for AlgSetAeadAuthSize

source§

impl SetSockOpt for BindToDevice

source§

impl SetSockOpt for Broadcast

source§

impl SetSockOpt for DontRoute

source§

impl SetSockOpt for IpAddMembership

source§

impl SetSockOpt for IpBindAddressNoPort

source§

impl SetSockOpt for IpDropMembership

source§

impl SetSockOpt for IpFreebind

source§

impl SetSockOpt for IpMulticastLoop

source§

impl SetSockOpt for IpMulticastTtl

source§

impl SetSockOpt for IpTos

source§

impl SetSockOpt for IpTransparent

source§

impl SetSockOpt for Ipv4OrigDstAddr

source§

impl SetSockOpt for Ipv4PacketInfo

source§

impl SetSockOpt for Ipv4RecvErr

source§

impl SetSockOpt for Ipv4Ttl

source§

impl SetSockOpt for Ipv6AddMembership

source§

impl SetSockOpt for Ipv6DontFrag

source§

impl SetSockOpt for Ipv6DropMembership

source§

impl SetSockOpt for Ipv6MulticastHops

source§

impl SetSockOpt for Ipv6OrigDstAddr

source§

impl SetSockOpt for Ipv6RecvErr

source§

impl SetSockOpt for Ipv6RecvPacketInfo

source§

impl SetSockOpt for Ipv6TClass

source§

impl SetSockOpt for Ipv6Ttl

source§

impl SetSockOpt for Ipv6V6Only

source§

impl SetSockOpt for KeepAlive

source§

impl SetSockOpt for Linger

source§

impl SetSockOpt for Mark

source§

impl SetSockOpt for OobInline

source§

impl SetSockOpt for PassCred

source§

impl SetSockOpt for Priority

source§

impl SetSockOpt for RcvBuf

source§

impl SetSockOpt for RcvBufForce

source§

impl SetSockOpt for ReceiveTimeout

source§

impl SetSockOpt for ReceiveTimestamp

source§

impl SetSockOpt for ReceiveTimestampns

source§

impl SetSockOpt for ReuseAddr

source§

impl SetSockOpt for ReusePort

source§

impl SetSockOpt for RxqOvfl

source§

impl SetSockOpt for SendTimeout

source§

impl SetSockOpt for SndBuf

source§

impl SetSockOpt for SndBufForce

source§

impl SetSockOpt for TcpCongestion

source§

impl SetSockOpt for TcpFastOpenConnect

source§

impl SetSockOpt for TcpKeepCount

source§

impl SetSockOpt for TcpKeepIdle

source§

impl SetSockOpt for TcpKeepInterval

source§

impl SetSockOpt for TcpMaxSeg

source§

impl SetSockOpt for TcpNoDelay

source§

impl SetSockOpt for TcpRepair

source§

impl SetSockOpt for TcpTlsRx

source§

impl SetSockOpt for TcpTlsTx

source§

impl SetSockOpt for TcpUserTimeout

source§

impl SetSockOpt for Timestamping

source§

impl SetSockOpt for TxTime

source§

impl SetSockOpt for UdpGroSegment

source§

impl SetSockOpt for UdpGsoSegment

source§

impl<T> SetSockOpt for AlgSetKey<T>
where T: AsRef<[u8]> + Clone,

source§

type Val = T

source§

impl<T> SetSockOpt for TcpUlp<T>
where T: AsRef<[u8]> + Clone,

source§

type Val = T