Home
last modified time | relevance | path

Searched defs:Socket (Results 1 – 25 of 82) sorted by relevance

1234

/prebuilts/rust/linux-musl-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
Dnet.rs38 pub struct Socket(FileDesc); struct
40 impl Socket { implementation
41 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new()
49 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw()
54 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument
135 ) -> io::Result<Socket> { in accept()
140 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
317 impl AsInner<FileDesc> for Socket { implementation
324 impl IntoInner<FileDesc> for Socket { implementation
330 impl FromInner<FileDesc> for Socket { implementation
[all …]
/prebuilts/rust/linux-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
Dnet.rs38 pub struct Socket(FileDesc); struct
40 impl Socket { implementation
41 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new()
49 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw()
54 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument
135 ) -> io::Result<Socket> { in accept()
140 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
317 impl AsInner<FileDesc> for Socket { implementation
324 impl IntoInner<FileDesc> for Socket { implementation
330 impl FromInner<FileDesc> for Socket { implementation
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
Dnet.rs38 pub struct Socket(FileDesc); struct
40 impl Socket { impl
41 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new()
49 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw()
54 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument
135 ) -> io::Result<Socket> { in accept()
140 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
317 impl AsInner<FileDesc> for Socket { implementation
324 impl IntoInner<FileDesc> for Socket { implementation
330 impl FromInner<FileDesc> for Socket { implementation
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/hermit/
Dnet.rs38 pub struct Socket(FileDesc); struct
40 impl Socket { impl
41 pub fn new(addr: &SocketAddr, ty: i32) -> io::Result<Socket> { in new()
49 pub fn new_raw(fam: i32, ty: i32) -> io::Result<Socket> { in new_raw()
54 pub fn new_pair(_fam: i32, _ty: i32) -> io::Result<(Socket, Socket)> { in new_pair() argument
135 ) -> io::Result<Socket> { in accept()
140 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
317 impl AsInner<FileDesc> for Socket { implementation
324 impl IntoInner<FileDesc> for Socket { implementation
330 impl FromInner<FileDesc> for Socket { implementation
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/
Dnet.rs116 pub struct Socket(OwnedFd); struct
118 impl Socket { impl
119 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
127 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
191 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
196 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
385 impl FromInner<OwnedFd> for Socket { implementation
387 fn from_inner(sock: OwnedFd) -> Socket { in from_inner()
392 impl IntoInner<OwnedFd> for Socket { implementation
399 impl AsFd for Socket { implementation
[all …]
/prebuilts/rust/linux-musl-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/
Dnet.rs116 pub struct Socket(OwnedFd); struct
118 impl Socket { impl
119 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
127 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
191 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
196 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
385 impl FromInner<OwnedFd> for Socket { implementation
387 fn from_inner(sock: OwnedFd) -> Socket { in from_inner()
392 impl IntoInner<OwnedFd> for Socket { implementation
399 impl AsFd for Socket { implementation
[all …]
/prebuilts/rust/linux-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/
Dnet.rs116 pub struct Socket(OwnedFd); struct
118 impl Socket { impl
119 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
127 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
191 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
196 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
385 impl FromInner<OwnedFd> for Socket { implementation
387 fn from_inner(sock: OwnedFd) -> Socket { in from_inner()
392 impl IntoInner<OwnedFd> for Socket { implementation
399 impl AsFd for Socket { implementation
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/solid/
Dnet.rs116 pub struct Socket(OwnedFd); struct
118 impl Socket { implementation
119 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
127 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
191 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
196 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
385 impl FromInner<OwnedFd> for Socket { implementation
387 fn from_inner(sock: OwnedFd) -> Socket { in from_inner()
392 impl IntoInner<OwnedFd> for Socket { implementation
399 impl AsFd for Socket { implementation
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasip2/
Dnet.rs75 pub struct Socket(WasiSocket); struct
77 impl Socket { impl
78 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
86 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
160 ) -> io::Result<Socket> { in accept()
165 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
375 impl AsInner<WasiSocket> for Socket { implementation
382 impl IntoInner<WasiSocket> for Socket { implementation
388 impl FromInner<WasiSocket> for Socket { implementation
389 fn from_inner(sock: WasiSocket) -> Socket { in from_inner()
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasip2/
Dnet.rs75 pub struct Socket(WasiSocket); struct
77 impl Socket { implementation
78 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
86 pub fn new_raw(fam: c_int, ty: c_int) -> io::Result<Socket> { in new_raw()
160 ) -> io::Result<Socket> { in accept()
165 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
375 impl AsInner<WasiSocket> for Socket { implementation
382 impl IntoInner<WasiSocket> for Socket { implementation
388 impl FromInner<WasiSocket> for Socket { implementation
389 fn from_inner(sock: WasiSocket) -> Socket { in from_inner()
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
Dnet.rs29 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
243 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
274 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
577 impl AsInner<FileDesc> for Socket { implementation
584 impl IntoInner<FileDesc> for Socket { implementation
[all …]
Dl4re.rs23 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()
135 impl AsInner<FileDesc> for Socket { implementation
142 impl FromInner<FileDesc> for Socket { implementation
143 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner()
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
Dnet.rs29 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
243 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
274 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
577 impl AsInner<FileDesc> for Socket { implementation
584 impl IntoInner<FileDesc> for Socket { implementation
[all …]
Dl4re.rs23 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()
135 impl AsInner<FileDesc> for Socket { implementation
142 impl FromInner<FileDesc> for Socket { implementation
143 fn from_inner(file_desc: FileDesc) -> Socket { in from_inner()
[all …]
/prebuilts/rust/linux-musl-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
Dnet.rs29 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
243 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
274 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
577 impl AsInner<FileDesc> for Socket { implementation
584 impl IntoInner<FileDesc> for Socket { implementation
[all …]
Dl4re.rs23 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 …]
/prebuilts/rust/linux-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/unix/
Dnet.rs29 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
243 pub fn accept(&self, storage: *mut sockaddr, len: *mut socklen_t) -> io::Result<Socket> { in accept()
274 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
577 impl AsInner<FileDesc> for Socket { implementation
584 impl IntoInner<FileDesc> for Socket { implementation
[all …]
Dl4re.rs23 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 …]
/prebuilts/rust/linux-musl-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasi/
Dnet.rs13 pub struct Socket(WasiFd); struct
19 impl AsInner<WasiFd> for Socket { implementation
26 impl IntoInner<WasiFd> for Socket { implementation
32 impl FromInner<WasiFd> for Socket { implementation
33 fn from_inner(inner: WasiFd) -> Socket { in from_inner()
38 impl AsFd for Socket { implementation
44 impl AsRawFd for Socket { implementation
51 impl IntoRawFd for Socket { implementation
57 impl FromRawFd for Socket { implementation
190 pub fn socket(&self) -> &Socket { in socket()
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasi/
Dnet.rs13 pub struct Socket(WasiFd); struct
19 impl AsInner<WasiFd> for Socket { implementation
26 impl IntoInner<WasiFd> for Socket { implementation
32 impl FromInner<WasiFd> for Socket { implementation
33 fn from_inner(inner: WasiFd) -> Socket { in from_inner()
38 impl AsFd for Socket { implementation
44 impl AsRawFd for Socket { implementation
51 impl IntoRawFd for Socket { implementation
57 impl FromRawFd for Socket { implementation
190 pub fn socket(&self) -> &Socket { in socket()
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasi/
Dnet.rs13 pub struct Socket(WasiFd); struct
19 impl AsInner<WasiFd> for Socket { implementation
26 impl IntoInner<WasiFd> for Socket { implementation
32 impl FromInner<WasiFd> for Socket { implementation
33 fn from_inner(inner: WasiFd) -> Socket { in from_inner()
38 impl AsFd for Socket { implementation
44 impl AsRawFd for Socket { implementation
51 impl IntoRawFd for Socket { implementation
57 impl FromRawFd for Socket { implementation
190 pub fn socket(&self) -> &Socket { in socket()
[all …]
/prebuilts/rust/linux-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/wasi/
Dnet.rs13 pub struct Socket(WasiFd); struct
19 impl AsInner<WasiFd> for Socket { implementation
26 impl IntoInner<WasiFd> for Socket { implementation
32 impl FromInner<WasiFd> for Socket { implementation
33 fn from_inner(inner: WasiFd) -> Socket { in from_inner()
38 impl AsFd for Socket { implementation
44 impl AsRawFd for Socket { implementation
51 impl IntoRawFd for Socket { implementation
57 impl FromRawFd for Socket { implementation
190 pub fn socket(&self) -> &Socket { in socket()
[all …]
/prebuilts/rust/linux-musl-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/windows/
Dnet.rs113 pub struct Socket(OwnedSocket); struct
185 impl Socket { implementation
186 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
286 pub fn accept(&self, storage: *mut c::SOCKADDR, len: *mut c_int) -> io::Result<Socket> { in accept()
295 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
527 impl<'a> Read for &'a Socket { implementation
533 impl AsInner<OwnedSocket> for Socket { implementation
540 impl FromInner<OwnedSocket> for Socket { implementation
541 fn from_inner(sock: OwnedSocket) -> Socket { in from_inner()
546 impl IntoInner<OwnedSocket> for Socket { implementation
[all …]
/prebuilts/rust/linux-musl-x86/1.82.0/lib/rustlib/src/rust/library/std/src/sys/pal/windows/
Dnet.rs113 pub struct Socket(OwnedSocket); struct
185 impl Socket { impl
186 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
286 pub fn accept(&self, storage: *mut c::SOCKADDR, len: *mut c_int) -> io::Result<Socket> { in accept()
295 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
527 impl<'a> Read for &'a Socket { implementation
533 impl AsInner<OwnedSocket> for Socket { implementation
540 impl FromInner<OwnedSocket> for Socket { implementation
541 fn from_inner(sock: OwnedSocket) -> Socket { in from_inner()
546 impl IntoInner<OwnedSocket> for Socket { implementation
[all …]
/prebuilts/rust/linux-x86/1.83.0/lib/rustlib/src/rust/library/std/src/sys/pal/windows/
Dnet.rs113 pub struct Socket(OwnedSocket); struct
185 impl Socket { impl
186 pub fn new(addr: &SocketAddr, ty: c_int) -> io::Result<Socket> { in new()
286 pub fn accept(&self, storage: *mut c::SOCKADDR, len: *mut c_int) -> io::Result<Socket> { in accept()
295 pub fn duplicate(&self) -> io::Result<Socket> { in duplicate()
527 impl<'a> Read for &'a Socket { implementation
533 impl AsInner<OwnedSocket> for Socket { implementation
540 impl FromInner<OwnedSocket> for Socket { implementation
541 fn from_inner(sock: OwnedSocket) -> Socket { in from_inner()
546 impl IntoInner<OwnedSocket> for Socket { implementation
[all …]

1234