Searched refs:PosixIpProtocol (Results 1 – 1 of 1) sorted by relevance
176 PosixIpProtocol::try_from(level as u16).map_err(|_| SystemError::ENOPROTOOPT)?; in getsockopt()177 if posix_protocol == PosixIpProtocol::TCP { in getsockopt()752 pub enum PosixIpProtocol { enum809 impl TryFrom<u16> for PosixIpProtocol { implementation820 impl From<PosixIpProtocol> for u16 {821 fn from(value: PosixIpProtocol) -> Self { in from()822 <PosixIpProtocol as ToPrimitive>::to_u16(&value).unwrap() in from()