dope_sys/io/socket/option/kind.rs
1/// One validated scalar stream option in its fixed application order.
2#[derive(Clone, Copy, Debug, Eq, PartialEq)]
3#[repr(u8)]
4pub enum Kind {
5 NoDelay,
6 KeepAlive,
7 RecvBuffer,
8 SendBuffer,
9 KeepAliveIdle,
10 KeepAliveInterval,
11 KeepAliveRetries,
12}
13
14impl Kind {
15 pub const fn bit(self) -> u8 {
16 1 << self as u8
17 }
18}