Searched refs:PosixSocketType (Results 1 – 2 of 2) sorted by relevance
19 socket::{PosixSocketType, RawSocket, SocketInode, SocketOptions, TcpSocket, UdpSocket},45 let socket_type = PosixSocketType::try_from((socket_type & 0xf) as u8)?; in do_socket()50 PosixSocketType::Stream => Box::new(TcpSocket::new(SocketOptions::default())), in do_socket()51 PosixSocketType::Datagram => Box::new(UdpSocket::new(SocketOptions::default())), in do_socket()52 PosixSocketType::Raw => Box::new(RawSocket::new( in do_socket()
969 pub enum PosixSocketType { enum979 impl TryFrom<u8> for PosixSocketType { implementation