Home
last modified time | relevance | path

Searched defs:OwnedFd (Results 1 – 25 of 44) sorted by relevance

12

/third_party/rust/crates/rustix/src/io/fd/
Downed.rs60 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/
Dimpls_mio.rs35 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 …]
Dimpls_std.rs45 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 …]
Dimpls_async_std.rs42 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 …]
Dimpls_fs_err.rs35 fn into_fd(self) -> OwnedFd { in into_fd()
41 impl From<fs_err::File> for OwnedFd { implementation
Dimpls_os_pipe.rs35 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
Dtypes.rs117 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
Dimpls_socket2.rs35 fn into_fd(self) -> OwnedFd { in into_fd()
41 impl From<socket2::Socket> for OwnedFd { implementation
/third_party/rust/crates/rustix/src/io/
Dprocfs.rs197 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()
Ddup.rs32 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()
Dfcntl.rs62 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()
Dpipe.rs65 pub fn pipe_with(flags: PipeFlags) -> io::Result<(OwnedFd, OwnedFd)> { in pipe_with() argument
Deventfd.rs14 pub fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result<OwnedFd> { in eventfd()
/third_party/rust/crates/rustix/src/net/
Dsocket.rs38 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()
Dsocketpair.rs19 ) -> io::Result<(OwnedFd, OwnedFd)> { in socketpair() argument
/third_party/rust/crates/rustix/src/backend/linux_raw/io/
Dsyscalls.rs301 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/
Dsyscalls.rs299 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/
Dflexible-apis.rs45 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/
Dsyscalls.rs148 ) -> 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/
Duserfaultfd.rs28 pub unsafe fn userfaultfd(flags: UserfaultfdFlags) -> io::Result<OwnedFd> { in userfaultfd()
/third_party/rust/crates/rustix/src/fs/
Dmemfd_create.rs13 pub fn memfd_create<P: path::Arg>(path: P, flags: MemfdFlags) -> io::Result<OwnedFd> { in memfd_create()
Dopenat2.rs19 ) -> io::Result<OwnedFd> { in openat2()
/third_party/rust/crates/rustix/src/backend/linux_raw/net/
Dsyscalls.rs40 ) -> 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/
Dconv.rs151 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/
Dtimerfd.rs13 pub fn timerfd_create(clockid: TimerfdClockId, flags: TimerfdFlags) -> io::Result<OwnedFd> { in timerfd_create()

12