/aosp_15_r20/external/rust/android-crates-io/crates/socket2/src/sys/ |
D | windows.rs | 229 pub(crate) type Socket = windows_sys::Win32::Networking::WinSock::SOCKET; typedef 235 pub(crate) fn socket_as_raw(socket: &crate::socket::Inner) -> Socket { in socket_as_raw() 239 pub(crate) fn socket_into_raw(socket: crate::socket::Inner) -> Socket { in socket_into_raw() 243 pub(crate) fn socket(family: c_int, mut ty: c_int, protocol: c_int) -> io::Result<Socket> { in socket() 268 pub(crate) fn bind(socket: Socket, addr: &SockAddr) -> io::Result<()> { in bind() 272 pub(crate) fn connect(socket: Socket, addr: &SockAddr) -> io::Result<()> { in connect() 276 pub(crate) fn poll_connect(socket: &crate::Socket, timeout: Duration) -> io::Result<()> { in poll_connect() 339 pub(crate) fn listen(socket: Socket, backlog: c_int) -> io::Result<()> { in listen() 343 pub(crate) fn accept(socket: Socket) -> io::Result<(Socket, SockAddr)> { in accept() 384 pub(crate) fn try_clone(socket: Socket) -> io::Result<Socket> { in try_clone() [all …]
|
D | unix.rs | 836 pub(crate) type Socket = c_int; typedef 842 pub(crate) fn socket_as_raw(socket: &crate::socket::Inner) -> Socket { in socket_as_raw() 846 pub(crate) fn socket_into_raw(socket: crate::socket::Inner) -> Socket { in socket_into_raw() 850 pub(crate) fn socket(family: c_int, ty: c_int, protocol: c_int) -> io::Result<Socket> { in socket() 861 pub(crate) fn bind(fd: Socket, addr: &SockAddr) -> io::Result<()> { in bind() 865 pub(crate) fn connect(fd: Socket, addr: &SockAddr) -> io::Result<()> { in connect() 869 pub(crate) fn poll_connect(socket: &crate::Socket, timeout: Duration) -> io::Result<()> { in poll_connect() 911 pub(crate) fn listen(fd: Socket, backlog: c_int) -> io::Result<()> { in listen() 915 pub(crate) fn accept(fd: Socket) -> io::Result<(Socket, SockAddr)> { in accept() 932 pub(crate) fn try_clone(fd: Socket) -> io::Result<Socket> { in try_clone() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/socket2/src/ |
D | socket.rs | 75 pub struct Socket { struct 82 impl Socket { impl 89 pub(crate) fn from_raw(raw: sys::Socket) -> Socket { in from_raw() 112 pub(crate) fn as_raw(&self) -> sys::Socket { in as_raw() 116 pub(crate) fn into_raw(self) -> sys::Socket { in into_raw() 131 pub fn new(domain: Domain, ty: Type, protocol: Option<Protocol>) -> io::Result<Socket> { in new() 140 pub fn new_raw(domain: Domain, ty: Type, protocol: Option<Protocol>) -> io::Result<Socket> { in new_raw() 158 ) -> io::Result<(Socket, Socket)> { in pair() argument 175 ) -> io::Result<(Socket, Socket)> { in pair_raw() argument 265 pub fn accept(&self) -> io::Result<(Socket, SockAddr)> { in accept() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/ |
H A D | l4re.rs | 23 pub struct Socket(FileDesc); struct 24 impl Socket { impl 25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new() 29 pub fn new_raw(_: libc::c_int, _: libc::c_int) -> io::Result<Socket> { in new_raw() 33 pub fn new_pair(_: libc::c_int, _: libc::c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 45 ) -> io::Result<Socket> { in accept() 49 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 131 impl AsInner<FileDesc> for Socket { implementation 138 impl FromInner<FileDesc> for Socket { implementation 139 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner() [all …]
|
H A D | net.rs | 31 pub struct Socket(FileDesc); struct 62 impl Socket { impl 63 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 71 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 115 pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 147 pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 234 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 265 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 568 impl AsInner<FileDesc> for Socket { implementation 575 impl IntoInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/ |
H A D | l4re.rs | 23 pub struct Socket(FileDesc); struct 24 impl Socket { implementation 25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new() 29 pub fn new_raw(_: libc::c_int, _: libc::c_int) -> io::Result<Socket> { in new_raw() 33 pub fn new_pair(_: libc::c_int, _: libc::c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 45 ) -> io::Result<Socket> { in accept() 49 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 131 impl AsInner<FileDesc> for Socket { implementation 138 impl FromInner<FileDesc> for Socket { implementation 139 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner() [all …]
|
H A D | net.rs | 31 pub struct Socket(FileDesc); struct 62 impl Socket { impl 63 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 71 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 115 pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 147 pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 234 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 265 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 568 impl AsInner<FileDesc> for Socket { implementation 575 impl IntoInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/ |
H A D | l4re.rs | 23 pub struct Socket(FileDesc); struct 24 impl Socket { implementation 25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new() 29 pub fn new_raw(_: libc::c_int, _: libc::c_int) -> io::Result<Socket> { in new_raw() 33 pub fn new_pair(_: libc::c_int, _: libc::c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 45 ) -> io::Result<Socket> { in accept() 49 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 131 impl AsInner<FileDesc> for Socket { implementation 138 impl FromInner<FileDesc> for Socket { implementation 139 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner() [all …]
|
H A D | net.rs | 31 pub struct Socket(FileDesc); struct 62 impl Socket { implementation 63 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 71 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 115 pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 147 pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 234 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 265 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 568 impl AsInner<FileDesc> for Socket { implementation 575 impl IntoInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/unix/ |
H A D | l4re.rs | 23 pub struct Socket(FileDesc); struct 24 impl Socket { implementation 25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new() 29 pub fn new_raw(_: libc::c_int, _: libc::c_int) -> io::Result<Socket> { in new_raw() 33 pub fn new_pair(_: libc::c_int, _: libc::c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 45 ) -> io::Result<Socket> { in accept() 49 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 131 impl AsInner<FileDesc> for Socket { implementation 138 impl FromInner<FileDesc> for Socket { implementation 139 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner() [all …]
|
H A D | net.rs | 31 pub struct Socket(FileDesc); struct 62 impl Socket { impl 63 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 71 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 115 pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 147 pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 234 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 265 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 568 impl AsInner<FileDesc> for Socket { implementation 575 impl IntoInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/ |
H A D | l4re.rs | 23 pub struct Socket(FileDesc); struct 24 impl Socket { impl 25 pub fn new(_: &SocketAddr, _: libc::c_int) -> io::Result<Socket> { in new() 29 pub fn new_raw(_: libc::c_int, _: libc::c_int) -> io::Result<Socket> { in new_raw() 33 pub fn new_pair(_: libc::c_int, _: libc::c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 45 ) -> io::Result<Socket> { in accept() 49 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 131 impl AsInner<FileDesc> for Socket { implementation 138 impl FromInner<FileDesc> for Socket { implementation 139 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner() [all …]
|
H A D | net.rs | 31 pub struct Socket(FileDesc); struct 62 impl Socket { implementation 63 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 71 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 115 pub fn new_pair(fam: c_int, ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 147 pub fn new_pair(_fam: c_int, _ty: c_int) -> io::Result<(Socket, Socket)> { in new_pair() argument 234 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 265 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 568 impl AsInner<FileDesc> for Socket { implementation 575 impl IntoInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/ |
H A D | net.rs | 39 pub struct Socket(FileDesc); struct 41 impl Socket { impl 42 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new() 50 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw() 55 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument 136 ) -> io::Result<Socket> { in accept() 141 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 318 impl AsInner<FileDesc> for Socket { implementation 325 impl IntoInner<FileDesc> for Socket { implementation 331 impl FromInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/ |
H A D | net.rs | 39 pub struct Socket(FileDesc); struct 41 impl Socket { impl 42 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new() 50 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw() 55 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument 136 ) -> io::Result<Socket> { in accept() 141 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 318 impl AsInner<FileDesc> for Socket { implementation 325 impl IntoInner<FileDesc> for Socket { implementation 331 impl FromInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/ |
H A D | net.rs | 39 pub struct Socket(FileDesc); struct 41 impl Socket { impl 42 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new() 50 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw() 55 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument 136 ) -> io::Result<Socket> { in accept() 141 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 318 impl AsInner<FileDesc> for Socket { implementation 325 impl IntoInner<FileDesc> for Socket { implementation 331 impl FromInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/ |
H A D | net.rs | 39 pub struct Socket(FileDesc); struct 41 impl Socket { implementation 42 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new() 50 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw() 55 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument 136 ) -> io::Result<Socket> { in accept() 141 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 319 impl AsInner<FileDesc> for Socket { implementation 326 impl IntoInner<FileDesc> for Socket { implementation 332 impl FromInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/ |
H A D | net.rs | 39 pub struct Socket(FileDesc); struct 41 impl Socket { implementation 42 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new() 50 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw() 55 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument 136 ) -> io::Result<Socket> { in accept() 141 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 319 impl AsInner<FileDesc> for Socket { implementation 326 impl IntoInner<FileDesc> for Socket { implementation 332 impl FromInner<FileDesc> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/solid/ |
H A D | net.rs | 120 pub struct Socket(OwnedFd); struct 122 impl Socket { implementation 123 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 131 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 195 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 200 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 389 impl FromInner<OwnedFd> for Socket { implementation 391 fn from_inner(sock: OwnedFd) -> Socket { in from_inner() 396 impl IntoInner<OwnedFd> for Socket { implementation 403 impl AsFd for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/ |
H A D | net.rs | 120 pub struct Socket(OwnedFd); struct 122 impl Socket { impl 123 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 131 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 195 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 200 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 389 impl FromInner<OwnedFd> for Socket { implementation 391 fn from_inner(sock: OwnedFd) -> Socket { in from_inner() 396 impl IntoInner<OwnedFd> for Socket { implementation 403 impl AsFd for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/solid/ |
H A D | net.rs | 120 pub struct Socket(OwnedFd); struct 122 impl Socket { implementation 123 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 131 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 195 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 200 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 389 impl FromInner<OwnedFd> for Socket { implementation 391 fn from_inner(sock: OwnedFd) -> Socket { in from_inner() 396 impl IntoInner<OwnedFd> for Socket { implementation 403 impl AsFd for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/ |
H A D | net.rs | 120 pub struct Socket(OwnedFd); struct 122 impl Socket { impl 123 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 131 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 195 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 200 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 389 impl FromInner<OwnedFd> for Socket { implementation 391 fn from_inner(sock: OwnedFd) -> Socket { in from_inner() 396 impl IntoInner<OwnedFd> for Socket { implementation 403 impl AsFd for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/solid/ |
H A D | net.rs | 120 pub struct Socket(OwnedFd); struct 122 impl Socket { implementation 123 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 131 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw() 195 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept() 200 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 389 impl FromInner<OwnedFd> for Socket { implementation 391 fn from_inner(sock: OwnedFd) -> Socket { in from_inner() 396 impl IntoInner<OwnedFd> for Socket { implementation 403 impl AsFd for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/sys/pal/windows/ |
H A D | net.rs | 30 pub struct Socket(OwnedSocket); struct 102 impl Socket { implementation 103 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 203 pub fn accept(&self, storage: *mut c::SOCKADDR, len: *mut c_int) -> io::Result<Socket> { in accept() 212 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 444 impl<'a> Read for &'a Socket { implementation 450 impl AsInner<OwnedSocket> for Socket { implementation 457 impl FromInner<OwnedSocket> for Socket { implementation 458 fn from_inner(sock: OwnedSocket) -> Socket { in from_inner() 463 impl IntoInner<OwnedSocket> for Socket { implementation [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/sys/pal/windows/ |
H A D | net.rs | 30 pub struct Socket(OwnedSocket); struct 102 impl Socket { impl 103 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new() 203 pub fn accept(&self, storage: *mut c::SOCKADDR, len: *mut c_int) -> io::Result<Socket> { in accept() 212 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate() 444 impl<'a> Read for &'a Socket { implementation 450 impl AsInner<OwnedSocket> for Socket { implementation 457 impl FromInner<OwnedSocket> for Socket { implementation 458 fn from_inner(sock: OwnedSocket) -> Socket { in from_inner() 463 impl IntoInner<OwnedSocket> for Socket { implementation [all …]
|