Lines Matching defs:Socket
72 pub struct Socket { struct
79 impl Socket { impl
86 pub(crate) fn from_raw(raw: sys::Socket) -> Socket { in from_raw()
109 pub(crate) fn as_raw(&self) -> sys::Socket { in as_raw()
113 pub(crate) fn into_raw(self) -> sys::Socket { in into_raw()
127 pub fn new(domain: Domain, ty: Type, protocol: Option<Protocol>) -> io::Result<Socket> { in new()
136 pub fn new_raw(domain: Domain, ty: Type, protocol: Option<Protocol>) -> io::Result<Socket> { in new_raw()
153 ) -> io::Result<(Socket, Socket)> { in pair() argument
170 ) -> io::Result<(Socket, Socket)> { in pair_raw() argument
256 pub fn accept(&self) -> io::Result<(Socket, SockAddr)> { in accept()
296 pub fn accept_raw(&self) -> io::Result<(Socket, SockAddr)> { in accept_raw()
342 pub fn try_clone(&self) -> io::Result<Socket> { in try_clone()
692 fn set_common_flags(socket: Socket) -> io::Result<Socket> { in set_common_flags()
740 impl Socket { implementation
1012 impl Socket { implementation
1452 impl Socket { implementation
1643 impl Socket { implementation
1824 impl Read for Socket { implementation
1843 impl<'a> Read for &'a Socket { implementation
1858 impl Write for Socket { implementation
1873 impl<'a> Write for &'a Socket { implementation
1888 impl fmt::Debug for Socket { implementation