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