nix::sys::socket

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl SetSockOpt for Broadcast

Source§

impl SetSockOpt for DontRoute

Source§

impl SetSockOpt for IpAddMembership

Source§

impl SetSockOpt for IpDropMembership

Source§

impl SetSockOpt for IpFreebind

Source§

impl SetSockOpt for IpMulticastLoop

Source§

impl SetSockOpt for IpMulticastTtl

Source§

impl SetSockOpt for Ipv6V6Only

Source§

impl SetSockOpt for KeepAlive

Source§

impl SetSockOpt for Linger

Source§

impl SetSockOpt for OobInline

Source§

impl SetSockOpt for RcvBuf

Source§

impl SetSockOpt for ReceiveTimeout

Source§

impl SetSockOpt for ReceiveTimestamp

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 TcpKeepCount

Source§

impl SetSockOpt for TcpKeepInterval

Source§

impl SetSockOpt for TcpNoDelay

Source§

impl SetSockOpt for TcpRepair

Source§

impl SetSockOpt for TcpUserTimeout