Lines Matching refs:u16
35 let address_family = AddressFamily::try_from(address_family as u16)?; in socket()
146 PosixIpProtocol::try_from(level as u16).map_err(|_| SystemError::ENOPROTOOPT)?; in getsockopt()
423 pub sin_family: u16,
424 pub sin_port: u16,
432 pub sun_family: u16,
439 pub sll_family: u16,
440 pub sll_protocol: u16,
442 pub sll_hatype: u16,
451 nl_family: u16,
452 nl_pad: u16,
460 pub family: u16,
467 pub family: u16,
500 let port = u16::from_be(addr_in.sin_port); in to_endpoint()
580 family: AddressFamily::Unspecified as u16, in from()
590 sin_family: AddressFamily::INet as u16, in from()
606 sll_family: AddressFamily::Packet as u16, in from()
701 impl TryFrom<u16> for PosixIpProtocol {
704 fn try_from(value: u16) -> Result<Self, Self::Error> { in try_from()
712 impl Into<u16> for PosixIpProtocol {
713 fn into(self) -> u16 { in into() argument