/third_party/rust/crates/rustix/src/io/fd/ |
D | owned.rs | 60 pub struct OwnedFd { struct 61 fd: RawFd, 86 impl OwnedFd { implementation 125 impl AsRawFd for OwnedFd { implementation 133 impl IntoRawFd for OwnedFd { implementation 143 impl FromRawFd for OwnedFd { implementation 162 impl Drop for OwnedFd { implementation 184 impl fmt::Debug for OwnedFd { implementation 244 impl AsFd for OwnedFd { implementation
|
/third_party/rust/crates/io-lifetimes/src/ |
D | impls_mio.rs | 35 fn into_fd(self) -> OwnedFd { in into_fd() 41 impl From<mio::net::TcpStream> for OwnedFd { implementation 115 fn into_fd(self) -> OwnedFd { in into_fd() 121 impl From<mio::net::TcpListener> for OwnedFd { implementation 195 fn into_fd(self) -> OwnedFd { in into_fd() 201 impl From<mio::net::UdpSocket> for OwnedFd { implementation 267 fn into_fd(self) -> OwnedFd { in into_fd() 273 impl From<mio::net::UnixDatagram> for OwnedFd { implementation 307 fn into_fd(self) -> OwnedFd { in into_fd() 313 impl From<mio::net::UnixListener> for OwnedFd { implementation [all …]
|
D | impls_std.rs | 45 impl AsFd for OwnedFd { implementation 69 impl IntoFd for OwnedFd { implementation 71 fn into_fd(self) -> OwnedFd { in into_fd() 93 impl FromFd for OwnedFd { implementation 151 fn into_fd(self) -> OwnedFd { in into_fd() 157 impl From<std::fs::File> for OwnedFd { implementation 231 fn into_fd(self) -> OwnedFd { in into_fd() 237 impl From<std::net::TcpStream> for OwnedFd { implementation 311 fn into_fd(self) -> OwnedFd { in into_fd() 317 impl From<std::net::TcpListener> for OwnedFd { implementation [all …]
|
D | impls_async_std.rs | 42 fn into_fd(self) -> OwnedFd { in into_fd() 48 impl From<async_std::fs::File> for OwnedFd { implementation 122 fn into_fd(self) -> OwnedFd { in into_fd() 128 impl From<async_std::net::TcpStream> for OwnedFd { implementation 202 fn into_fd(self) -> OwnedFd { in into_fd() 208 impl From<async_std::net::TcpListener> for OwnedFd { implementation 282 fn into_fd(self) -> OwnedFd { in into_fd() 288 impl From<async_std::net::UdpSocket> for OwnedFd { implementation 402 fn into_fd(self) -> OwnedFd { in into_fd() 408 impl From<async_std::os::unix::net::UnixStream> for OwnedFd { implementation [all …]
|
D | impls_fs_err.rs | 35 fn into_fd(self) -> OwnedFd { in into_fd() 41 impl From<fs_err::File> for OwnedFd { implementation
|
D | impls_os_pipe.rs | 35 fn into_fd(self) -> OwnedFd { in into_fd() 41 impl From<os_pipe::PipeReader> for OwnedFd { implementation 115 fn into_fd(self) -> OwnedFd { in into_fd() 121 impl From<os_pipe::PipeWriter> for OwnedFd { implementation
|
D | types.rs | 117 pub struct OwnedFd { struct 122 impl OwnedFd { impl 134 pub fn try_clone_to_owned(&self) -> std::io::Result<OwnedFd> { in try_clone_to_owned() 586 impl AsRawFd for OwnedFd { implementation 610 impl IntoRawFd for OwnedFd { implementation 640 impl FromRawFd for OwnedFd { implementation 717 impl Drop for OwnedFd { implementation 835 impl fmt::Debug for OwnedFd { implementation
|
D | impls_socket2.rs | 35 fn into_fd(self) -> OwnedFd { in into_fd() 41 impl From<socket2::Socket> for OwnedFd { implementation
|
/third_party/rust/crates/rustix/src/io/ |
D | procfs.rs | 197 fn proc_opendirat<P: crate::path::Arg, Fd: AsFd>(dirfd: Fd, path: P) -> io::Result<OwnedFd> { in proc_opendirat() 294 fn new_static_fd(fd: OwnedFd, stat: Stat) -> (OwnedFd, Stat) { in new_static_fd() 339 pub fn proc_self_fdinfo_fd<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in proc_self_fdinfo_fd() 343 fn _proc_self_fdinfo(fd: BorrowedFd<'_>) -> io::Result<OwnedFd> { in _proc_self_fdinfo() 397 fn proc_self_file(name: &CStr) -> io::Result<OwnedFd> { in proc_self_file() 403 fn open_and_check_file(dir: BorrowedFd, dir_stat: &Stat, name: &CStr) -> io::Result<OwnedFd> { in open_and_check_file()
|
D | dup.rs | 32 pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in dup() 78 pub fn dup3<Fd: AsFd>(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3()
|
D | fcntl.rs | 62 pub fn fcntl_dupfd_cloexec<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd_cloexec() 83 pub fn fcntl_dupfd<Fd: AsFd>(fd: Fd, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd()
|
D | pipe.rs | 65 pub fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { in pipe_with() argument
|
D | eventfd.rs | 14 pub fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result<OwnedFd> { in eventfd()
|
/third_party/rust/crates/rustix/src/net/ |
D | socket.rs | 38 pub fn socket(domain: AddressFamily, type_: SocketType, protocol: Protocol) -> io::Result<OwnedFd> { in socket() 68 ) -> io::Result<OwnedFd> { in socket_with() 323 pub fn accept<Fd: AsFd>(sockfd: Fd) -> io::Result<OwnedFd> { in accept() 345 pub fn accept_with<Fd: AsFd>(sockfd: Fd, flags: AcceptFlags) -> io::Result<OwnedFd> { in accept_with() 366 pub fn acceptfrom<Fd: AsFd>(sockfd: Fd) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom() 387 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
|
D | socketpair.rs | 19 ) -> io::Result<(OwnedFd, OwnedFd)> { in socketpair() argument
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | syscalls.rs | 301 pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result<OwnedFd> { in eventfd() 399 pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result<OwnedFd> { in dup() 420 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3() 452 pub(crate) fn fcntl_dupfd(fd: BorrowedFd<'_>, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd() 474 pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd_cloexec() 496 pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { in pipe_with() argument 563 pub(crate) fn epoll_create(flags: epoll::CreateFlags) -> io::Result<OwnedFd> { in epoll_create()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | syscalls.rs | 299 pub(crate) fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result<OwnedFd> { in eventfd() 408 pub(crate) fn fcntl_dupfd_cloexec(fd: BorrowedFd<'_>, min: RawFd) -> io::Result<OwnedFd> { in fcntl_dupfd_cloexec() 413 pub(crate) fn dup(fd: BorrowedFd<'_>) -> io::Result<OwnedFd> { in dup() 432 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3() 450 pub(crate) fn dup3(fd: BorrowedFd<'_>, new: &mut OwnedFd, _flags: DupFlags) -> io::Result<()> { in dup3() 490 pub(crate) fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { in pipe_with() argument
|
/third_party/rust/crates/io-lifetimes/examples/ |
D | flexible-apis.rs | 45 fn consume_fd_a(fd: OwnedFd) { in consume_fd_a() 60 fn consume_fd_c(fd: impl Into<OwnedFd>) { in consume_fd_c()
|
/third_party/rust/crates/rustix/src/backend/libc/net/ |
D | syscalls.rs | 148 ) -> io::Result<OwnedFd> { in socket() 164 ) -> io::Result<OwnedFd> { in socket_with() 246 pub(crate) fn accept(sockfd: BorrowedFd<'_>) -> io::Result<OwnedFd> { in accept() 261 pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, flags: AcceptFlags) -> io::Result<OwnedFd> { in accept_with() 274 pub(crate) fn acceptfrom(sockfd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom() 301 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with() 321 pub(crate) fn accept_with(sockfd: BorrowedFd<'_>, _flags: AcceptFlags) -> io::Result<OwnedFd> { in accept_with() 331 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with() 377 ) -> io::Result<(OwnedFd, OwnedFd)> { in socketpair() argument
|
/third_party/rust/crates/rustix/src/mm/ |
D | userfaultfd.rs | 28 pub unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result<OwnedFd> { in userfaultfd()
|
/third_party/rust/crates/rustix/src/fs/ |
D | memfd_create.rs | 13 pub fn memfd_create<P: path::Arg>(path: P, flags: MemfdFlags) -> io::Result<OwnedFd> { in memfd_create()
|
D | openat2.rs | 19 ) -> io::Result<OwnedFd> { in openat2()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/net/ |
D | syscalls.rs | 40 ) -> io::Result<OwnedFd> { in socket() 65 ) -> io::Result<OwnedFd> { in socket_with() 95 ) -> io::Result<(OwnedFd, OwnedFd)> { in socketpair() argument 128 pub(crate) fn accept(fd: BorrowedFd<'_>) -> io::Result<OwnedFd> { in accept() 146 pub(crate) fn accept_with(fd: BorrowedFd<'_>, flags: AcceptFlags) -> io::Result<OwnedFd> { in accept_with() 164 pub(crate) fn acceptfrom(fd: BorrowedFd<'_>) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom() 204 ) -> io::Result<(OwnedFd, Option<SocketAddrAny>)> { in acceptfrom_with()
|
/third_party/rust/crates/rustix/src/backend/libc/ |
D | conv.rs | 151 pub(super) unsafe fn ret_owned_fd(raw: LibcFd) -> io::Result<OwnedFd> { in ret_owned_fd() 185 pub(super) unsafe fn syscall_ret_owned_fd(raw: c::c_long) -> io::Result<OwnedFd> { in syscall_ret_owned_fd()
|
/third_party/rust/crates/rustix/src/time/ |
D | timerfd.rs | 13 pub fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result<OwnedFd> { in timerfd_create()
|