# [−][src]Trait nix::sys::socket::SetSockOpt

    pub trait SetSockOpt: Clone {
        type Val;
    }

Represents a socket option that can be accessed or set. Used as an argument to `setsockopt`

## Associated Types

### `type Val`

Loading content...

## Implementors

### `impl SetSockOpt for AlgSetAeadAuthSize`[src]

#### `type Val = usize`

#### `fn set(&self, fd: RawFd, val: &usize) -> Result<()>`[src]

### `impl SetSockOpt for Broadcast`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for IpAddMembership`[src]

#### `type Val = IpMembershipRequest`

#### `fn set(&self, fd: RawFd, val: &IpMembershipRequest) -> Result<()>`[src]

### `impl SetSockOpt for IpDropMembership`[src]

#### `type Val = IpMembershipRequest`

#### `fn set(&self, fd: RawFd, val: &IpMembershipRequest) -> Result<()>`[src]

### `impl SetSockOpt for IpMulticastLoop`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for IpMulticastTtl`[src]

#### `type Val = u8`

#### `fn set(&self, fd: RawFd, val: &u8) -> Result<()>`[src]

### `impl SetSockOpt for IpTransparent`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for Ipv4PacketInfo`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for Ipv6AddMembership`[src]

#### `type Val = Ipv6MembershipRequest`

#### `fn set(&self, fd: RawFd, val: &Ipv6MembershipRequest) -> Result<()>`[src]

### `impl SetSockOpt for Ipv6DropMembership`[src]

#### `type Val = Ipv6MembershipRequest`

#### `fn set(&self, fd: RawFd, val: &Ipv6MembershipRequest) -> Result<()>`[src]

### `impl SetSockOpt for Ipv6RecvPacketInfo`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for KeepAlive`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for Linger`[src]

#### `type Val = linger`

#### `fn set(&self, fd: RawFd, val: &linger) -> Result<()>`[src]

### `impl SetSockOpt for Mark`[src]

#### `type Val = u32`

#### `fn set(&self, fd: RawFd, val: &u32) -> Result<()>`[src]

### `impl SetSockOpt for OobInline`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for PassCred`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for RcvBuf`[src]

#### `type Val = usize`

#### `fn set(&self, fd: RawFd, val: &usize) -> Result<()>`[src]

### `impl SetSockOpt for RcvBufForce`[src]

#### `type Val = usize`

#### `fn set(&self, fd: RawFd, val: &usize) -> Result<()>`[src]

### `impl SetSockOpt for ReceiveTimeout`[src]

#### `type Val = TimeVal`

#### `fn set(&self, fd: RawFd, val: &TimeVal) -> Result<()>`[src]

### `impl SetSockOpt for ReceiveTimestamp`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for ReuseAddr`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for ReusePort`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

### `impl SetSockOpt for SendTimeout`[src]

#### `type Val = TimeVal`

#### `fn set(&self, fd: RawFd, val: &TimeVal) -> Result<()>`[src]

### `impl SetSockOpt for SndBuf`[src]

#### `type Val = usize`

#### `fn set(&self, fd: RawFd, val: &usize) -> Result<()>`[src]

### `impl SetSockOpt for SndBufForce`[src]

#### `type Val = usize`

#### `fn set(&self, fd: RawFd, val: &usize) -> Result<()>`[src]

### `impl SetSockOpt for TcpCongestion`[src]

#### `type Val = OsString`

#### `fn set(&self, fd: RawFd, val: &OsString) -> Result<()>`[src]

### `impl SetSockOpt for TcpKeepIdle`[src]

#### `type Val = u32`

#### `fn set(&self, fd: RawFd, val: &u32) -> Result<()>`[src]

### `impl SetSockOpt for TcpNoDelay`[src]

#### `type Val = bool`

#### `fn set(&self, fd: RawFd, val: &bool) -> Result<()>`[src]

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

#### `type Val = T`

#### `fn set(&self, fd: RawFd, val: &T) -> Result<()>`[src]

Loading content...

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)