Trait nix::sys::socket::SetSockOpt

source ·
pub trait SetSockOpt: Clone {
    type Val;

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

Represents a socket option that can be set.

Required Associated Types§

Required Methods§

source

fn set(&self, fd: RawFd, 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 Ipv4RecvErr

source§

impl SetSockOpt for Ipv4Ttl

source§

impl SetSockOpt for Ipv6DontFrag

source§

impl SetSockOpt for Ipv6RecvErr

source§

impl SetSockOpt for Ipv6Ttl

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 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 TcpMaxSeg

source§

impl SetSockOpt for TcpRepair

source§

impl SetSockOpt for Timestamping

source§

impl SetSockOpt for TxTime

source§

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

source§

type Val = T