/third_party/rust/crates/rustix/src/net/ |
D | sockopt.rs | 11 use backend::fd::AsFd; 34 pub fn get_socket_type<Fd: AsFd>(fd: Fd) -> io::Result<SocketType> { in get_socket_type() 56 pub fn set_socket_reuseaddr<Fd: AsFd>(fd: Fd, value: bool) -> io::Result<()> { in set_socket_reuseaddr() 78 pub fn set_socket_broadcast<Fd: AsFd>(fd: Fd, broadcast: bool) -> io::Result<()> { in set_socket_broadcast() 100 pub fn get_socket_broadcast<Fd: AsFd>(fd: Fd) -> io::Result<bool> { in get_socket_broadcast() 122 pub fn set_socket_linger<Fd: AsFd>(fd: Fd, linger: Option<Duration>) -> io::Result<()> { in set_socket_linger() 144 pub fn get_socket_linger<Fd: AsFd>(fd: Fd) -> io::Result<Option<Duration>> { in get_socket_linger() 159 pub fn set_socket_passcred<Fd: AsFd>(fd: Fd, passcred: bool) -> io::Result<()> { in set_socket_passcred() 174 pub fn get_socket_passcred<Fd: AsFd>(fd: Fd) -> io::Result<bool> { in get_socket_passcred() 198 pub fn set_socket_timeout<Fd: AsFd>( in set_socket_timeout() [all …]
|
D | socket.rs | 4 use backend::fd::{AsFd, BorrowedFd}; 84 pub fn bind<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { in bind() 108 pub fn bind_any<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { in bind_any() 136 pub fn bind_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in bind_v4() 155 pub fn bind_v6<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { in bind_v6() 175 pub fn bind_unix<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrUnix) -> io::Result<()> { in bind_unix() 191 pub fn connect<Fd: AsFd>(sockfd: Fd, addr: &SocketAddr) -> io::Result<()> { in connect() 215 pub fn connect_any<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrAny) -> io::Result<()> { in connect_any() 243 pub fn connect_v4<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV4) -> io::Result<()> { in connect_v4() 262 pub fn connect_v6<Fd: AsFd>(sockfd: Fd, addr: &SocketAddrV6) -> io::Result<()> { in connect_v6() [all …]
|
D | send_recv.rs | 7 use backend::fd::{AsFd, BorrowedFd}; 24 pub fn recv<Fd: AsFd>(fd: Fd, buf: &mut [u8], flags: RecvFlags) -> io::Result<usize> { in recv() 41 pub fn send<Fd: AsFd>(fd: Fd, buf: &[u8], flags: SendFlags) -> io::Result<usize> { in send() 59 pub fn recvfrom<Fd: AsFd>( in recvfrom() 80 pub fn sendto<Fd: AsFd>( in sendto() 114 pub fn sendto_any<Fd: AsFd>( in sendto_any() 152 pub fn sendto_v4<Fd: AsFd>( in sendto_v4() 176 pub fn sendto_v6<Fd: AsFd>( in sendto_v6() 201 pub fn sendto_unix<Fd: AsFd>( in sendto_unix()
|
/third_party/rust/crates/rustix/src/fs/ |
D | at.rs | 24 use backend::fd::{AsFd, BorrowedFd}; 56 pub fn openat<P: path::Arg, Fd: AsFd>( in openat() 78 pub fn readlinkat<P: path::Arg, Fd: AsFd, B: Into<Vec<u8>>>( in readlinkat() argument 116 pub fn mkdirat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, mode: Mode) -> io::Result<()> { in mkdirat() 130 pub fn linkat<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>( in linkat() argument 163 pub fn unlinkat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<()> { in unlinkat() 177 pub fn renameat<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>( in renameat() argument 205 pub fn renameat_with<P: path::Arg, Q: path::Arg, PFd: AsFd, QFd: AsFd>( in renameat_with() argument 234 pub fn symlinkat<P: path::Arg, Q: path::Arg, Fd: AsFd>( in symlinkat() 261 pub fn statat<P: path::Arg, Fd: AsFd>(dirfd: Fd, path: P, flags: AtFlags) -> io::Result<Stat> { in statat() [all …]
|
D | fd.rs | 9 use backend::fd::{AsFd, BorrowedFd}; 91 pub fn seek<Fd: AsFd>(fd: Fd, pos: SeekFrom) -> io::Result<u64> { in seek() 109 pub fn tell<Fd: AsFd>(fd: Fd) -> io::Result<u64> { in tell() 126 pub fn fchmod<Fd: AsFd>(fd: Fd, mode: Mode) -> io::Result<()> { in fchmod() 140 pub fn fchown<Fd: AsFd>(fd: Fd, owner: Option<Uid>, group: Option<Gid>) -> io::Result<()> { in fchown() 158 pub fn fstat<Fd: AsFd>(fd: Fd) -> io::Result<Stat> { in fstat() 180 pub fn fstatfs<Fd: AsFd>(fd: Fd) -> io::Result<StatFs> { in fstatfs() 206 pub fn fstatvfs<Fd: AsFd>(fd: Fd) -> io::Result<StatVfs> { in fstatvfs() 219 pub fn futimens<Fd: AsFd>(fd: Fd, times: &Timestamps) -> io::Result<()> { in futimens() 249 pub fn fallocate<Fd: AsFd>(fd: Fd, mode: FallocateFlags, offset: u64, len: u64) -> io::Result<()> { in fallocate() [all …]
|
D | fcntl.rs | 7 use backend::fd::AsFd; 27 pub fn fcntl_getfl<Fd: AsFd>(fd: Fd) -> io::Result<OFlags> { in fcntl_getfl() 41 pub fn fcntl_setfl<Fd: AsFd>(fd: Fd, flags: OFlags) -> io::Result<()> { in fcntl_setfl() 59 pub fn fcntl_get_seals<Fd: AsFd>(fd: Fd) -> io::Result<SealFlags> { in fcntl_get_seals() 85 pub fn fcntl_add_seals<Fd: AsFd>(fd: Fd, seals: SealFlags) -> io::Result<()> { in fcntl_add_seals()
|
D | sendfile.rs | 2 use backend::fd::AsFd; 12 pub fn sendfile<OutFd: AsFd, InFd: AsFd>( in sendfile() argument
|
D | copy_file_range.rs | 2 use backend::fd::AsFd; 12 pub fn copy_file_range<InFd: AsFd, OutFd: AsFd>( in copy_file_range() argument
|
D | fcntl_darwin.rs | 2 use backend::fd::AsFd; 11 pub fn fcntl_rdadvise<Fd: AsFd>(fd: Fd, offset: u64, len: u64) -> io::Result<()> { in fcntl_rdadvise() 22 pub fn fcntl_fullfsync<Fd: AsFd>(fd: Fd) -> io::Result<()> { in fcntl_fullfsync()
|
D | raw_dir.rs | 8 use crate::fd::AsFd; 19 pub struct RawDir<'buf, Fd: AsFd> { 26 impl<'buf, Fd: AsFd> RawDir<'buf, Fd> { 168 impl<'buf, Fd: AsFd> RawDir<'buf, Fd> {
|
/third_party/rust/crates/rustix/src/termios/ |
D | tc.rs | 1 use crate::fd::AsFd; 24 pub fn tcgetattr<Fd: AsFd>(fd: Fd) -> io::Result<Termios> { in tcgetattr() 39 pub fn tcgetwinsize<Fd: AsFd>(fd: Fd) -> io::Result<Winsize> { in tcgetwinsize() 56 pub fn tcgetpgrp<Fd: AsFd>(fd: Fd) -> io::Result<Pid> { in tcgetpgrp() 73 pub fn tcsetpgrp<Fd: AsFd>(fd: Fd, pid: Pid) -> io::Result<()> { in tcsetpgrp() 91 pub fn tcsetattr<Fd: AsFd>( in tcsetattr() 117 pub fn tcsendbreak<Fd: AsFd>(fd: Fd) -> io::Result<()> { in tcsendbreak() 132 pub fn tcdrain<Fd: AsFd>(fd: Fd) -> io::Result<()> { in tcdrain() 149 pub fn tcflush<Fd: AsFd>(fd: Fd, queue_selector: QueueSelector) -> io::Result<()> { in tcflush() 165 pub fn tcflow<Fd: AsFd>(fd: Fd, action: Action) -> io::Result<()> { in tcflow() [all …]
|
/third_party/rust/crates/rustix/src/io/ |
D | read_write.rs | 4 use backend::fd::AsFd; 29 pub fn read<Fd: AsFd>(fd: Fd, buf: &mut [u8]) -> io::Result<usize> { in read() 44 pub fn write<Fd: AsFd>(fd: Fd, buf: &[u8]) -> io::Result<usize> { in write() 59 pub fn pread<Fd: AsFd>(fd: Fd, buf: &mut [u8], offset: u64) -> io::Result<usize> { in pread() 78 pub fn pwrite<Fd: AsFd>(fd: Fd, buf: &[u8], offset: u64) -> io::Result<usize> { in pwrite() 93 pub fn readv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>]) -> io::Result<usize> { in readv() 108 pub fn writev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>]) -> io::Result<usize> { in writev() 121 pub fn preadv<Fd: AsFd>(fd: Fd, bufs: &mut [IoSliceMut<'_>], offset: u64) -> io::Result<usize> { in preadv() 138 pub fn pwritev<Fd: AsFd>(fd: Fd, bufs: &[IoSlice<'_>], offset: u64) -> io::Result<usize> { in pwritev() 152 pub fn preadv2<Fd: AsFd>( in preadv2() [all …]
|
D | ioctl.rs | 7 use backend::fd::AsFd; 18 pub fn ioctl_tiocexcl<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_tiocexcl() 31 pub fn ioctl_tiocnxcl<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_tiocnxcl() 49 pub fn ioctl_fioclex<Fd: AsFd>(fd: Fd) -> io::Result<()> { in ioctl_fioclex() 63 pub fn ioctl_fionbio<Fd: AsFd>(fd: Fd, value: bool) -> io::Result<()> { in ioctl_fionbio() 81 pub fn ioctl_fionread<Fd: AsFd>(fd: Fd) -> io::Result<u64> { in ioctl_fionread() 89 pub fn ioctl_blksszget<Fd: AsFd>(fd: Fd) -> io::Result<u32> { in ioctl_blksszget() 97 pub fn ioctl_blkpbszget<Fd: AsFd>(fd: Fd) -> io::Result<u32> { in ioctl_blkpbszget()
|
D | fcntl.rs | 12 use backend::fd::{AsFd, OwnedFd, RawFd}; 26 pub fn fcntl_getfd<Fd: AsFd>(fd: Fd) -> io::Result<FdFlags> { in fcntl_getfd() 40 pub fn fcntl_setfd<Fd: AsFd>(fd: Fd, flags: FdFlags) -> io::Result<()> { in fcntl_setfd() 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 | dup.rs | 5 use backend::fd::AsFd; 32 pub fn dup<Fd: AsFd>(fd: Fd) -> io::Result<OwnedFd> { in dup() 59 pub fn dup2<Fd: AsFd>(fd: Fd, new: &mut OwnedFd) -> io::Result<()> { in dup2() 78 pub fn dup3<Fd: AsFd>(fd: Fd, new: &mut OwnedFd, flags: DupFlags) -> io::Result<()> { in dup3()
|
D | pipe.rs | 6 use backend::fd::AsFd; 89 pub fn splice<FdIn: AsFd, FdOut: AsFd>( in splice() argument 124 pub unsafe fn vmsplice<PipeFd: AsFd>( in vmsplice()
|
/third_party/rust/crates/io-lifetimes/src/ |
D | impls_tokio.rs | 6 use crate::{AsFd, BorrowedFd, FromFd, OwnedFd}; 17 impl AsFd for tokio::fs::File { 65 impl AsFd for tokio::net::TcpStream { 81 impl AsFd for tokio::net::TcpListener { 97 impl AsFd for tokio::net::UdpSocket { 113 impl AsFd for tokio::io::Stdin { 129 impl AsFd for tokio::io::Stdout { 145 impl AsFd for tokio::io::Stderr { 161 impl AsFd for tokio::net::UnixStream { 169 impl AsFd for tokio::net::UnixListener { [all …]
|
D | impls_std.rs | 4 use crate::{AsFd, FromFd, IntoFd}; 21 impl AsFd for BorrowedFd<'_> { 45 impl AsFd for OwnedFd { 133 impl AsFd for std::fs::File { 213 impl AsFd for std::net::TcpStream { 293 impl AsFd for std::net::TcpListener { 373 impl AsFd for std::net::UdpSocket { 453 impl AsFd for std::io::Stdin { 469 impl<'a> AsFd for std::io::StdinLock<'a> { 485 impl AsFd for std::io::Stdout { [all …]
|
D | traits.rs | 19 pub trait AsFd { interface 240 impl<T: AsFd> AsFd for &T { impl 249 impl<T: AsFd> AsFd for &mut T { impl
|
D | impls_async_std.rs | 6 use crate::{AsFd, BorrowedFd, FromFd, IntoFd, OwnedFd}; 24 impl AsFd for async_std::fs::File { 104 impl AsFd for async_std::net::TcpStream { 184 impl AsFd for async_std::net::TcpListener { 264 impl AsFd for async_std::net::UdpSocket { 344 impl AsFd for async_std::io::Stdin { 360 impl AsFd for async_std::io::Stdout { 376 impl AsFd for async_std::io::Stderr { 392 impl AsFd for async_std::os::unix::net::UnixStream { 432 impl AsFd for async_std::os::unix::net::UnixListener { [all …]
|
D | impls_mio.rs | 6 use crate::{AsFd, BorrowedFd, FromFd, IntoFd, OwnedFd}; 17 impl AsFd for mio::net::TcpStream { 97 impl AsFd for mio::net::TcpListener { 177 impl AsFd for mio::net::UdpSocket { 257 impl AsFd for mio::net::UnixDatagram { 297 impl AsFd for mio::net::UnixListener { 337 impl AsFd for mio::net::UnixStream { 377 impl AsFd for mio::unix::pipe::Receiver { 417 impl AsFd for mio::unix::pipe::Sender {
|
/third_party/rust/crates/rustix/src/io/fd/ |
D | owned.rs | 196 pub trait AsFd { interface 220 impl<T: AsFd> AsFd for &T { impl 228 impl<T: AsFd> AsFd for &mut T { impl 236 impl AsFd for BorrowedFd<'_> { 244 impl AsFd for OwnedFd {
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | epoll.rs | 64 use crate::fd::{AsFd, AsRawFd, OwnedFd}; 240 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> AsRawFd for Epoll<Owning<'context, T>> { 247 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> IntoRawFd for Epoll<Owning<'context, T>> { 254 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> FromRawFd for Epoll<Owning<'context, T>> { 264 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> AsFd for Epoll<Owning<'context, T>> { 271 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> From<Epoll<Owning<'context, T>>> 280 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> From<OwnedFd>
|
D | poll_fd.rs | 1 use crate::fd::{AsFd, BorrowedFd}; 49 pub fn new<Fd: AsFd>(fd: &'fd Fd, events: PollFlags) -> Self { in new() 55 pub fn set_fd<Fd: AsFd>(&mut self, fd: &'fd Fd) { in set_fd() 88 impl<'fd> AsFd for PollFd<'fd> {
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | epoll.rs | 62 use crate::fd::{AsFd, AsRawFd, BorrowedFd, OwnedFd, RawFd}; 249 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> AsRawFd for Epoll<Owning<'context, T>> { 256 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> IntoRawFd for Epoll<Owning<'context, T>> { 263 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> FromRawFd for Epoll<Owning<'context, T>> { 273 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> AsFd for Epoll<Owning<'context, T>> { 280 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> From<Epoll<Owning<'context, T>>> 289 impl<'context, T: AsFd + Into<OwnedFd> + From<OwnedFd>> From<OwnedFd>
|