Lines Matching defs:OwnedFd
8 use crate::{BorrowedFd, OwnedFd};
45 impl AsFd for OwnedFd {
69 impl IntoFd for OwnedFd {
71 fn into_fd(self) -> OwnedFd {
93 impl FromFd for OwnedFd {
95 fn from_fd(owned: OwnedFd) -> Self {
151 fn into_fd(self) -> OwnedFd {
152 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
157 impl From<std::fs::File> for OwnedFd {
183 fn from_fd(owned: OwnedFd) -> Self {
189 impl From<OwnedFd> for std::fs::File {
191 fn from(owned: OwnedFd) -> Self {
231 fn into_fd(self) -> OwnedFd {
232 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
237 impl From<std::net::TcpStream> for OwnedFd {
263 fn from_fd(owned: OwnedFd) -> Self {
269 impl From<OwnedFd> for std::net::TcpStream {
271 fn from(owned: OwnedFd) -> Self {
311 fn into_fd(self) -> OwnedFd {
312 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
317 impl From<std::net::TcpListener> for OwnedFd {
343 fn from_fd(owned: OwnedFd) -> Self {
349 impl From<OwnedFd> for std::net::TcpListener {
351 fn from(owned: OwnedFd) -> Self {
391 fn into_fd(self) -> OwnedFd {
392 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
397 impl From<std::net::UdpSocket> for OwnedFd {
423 fn from_fd(owned: OwnedFd) -> Self {
429 impl From<OwnedFd> for std::net::UdpSocket {
431 fn from(owned: OwnedFd) -> Self {
567 fn into_fd(self) -> OwnedFd {
568 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
573 impl From<std::process::ChildStdin> for OwnedFd {
615 fn into_fd(self) -> OwnedFd {
616 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
621 impl From<std::process::ChildStdout> for OwnedFd {
663 fn into_fd(self) -> OwnedFd {
664 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
669 impl From<std::process::ChildStderr> for OwnedFd {
695 fn from_fd(owned: OwnedFd) -> Self {
701 impl From<OwnedFd> for std::process::Stdio {
703 fn from(owned: OwnedFd) -> Self {
759 fn into_fd(self) -> OwnedFd {
760 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
765 impl From<std::os::unix::net::UnixStream> for OwnedFd {
775 fn from_fd(owned: OwnedFd) -> Self {
781 impl From<OwnedFd> for std::os::unix::net::UnixStream {
783 fn from(owned: OwnedFd) -> Self {
799 fn into_fd(self) -> OwnedFd {
800 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
805 impl From<std::os::unix::net::UnixListener> for OwnedFd {
815 fn from_fd(owned: OwnedFd) -> Self {
821 impl From<OwnedFd> for std::os::unix::net::UnixListener {
823 fn from(owned: OwnedFd) -> Self {
839 fn into_fd(self) -> OwnedFd {
840 unsafe { OwnedFd::from_raw_fd(self.into_raw_fd()) }
845 impl From<std::os::unix::net::UnixDatagram> for OwnedFd {
855 fn from_fd(owned: OwnedFd) -> Self {
861 impl From<OwnedFd> for std::os::unix::net::UnixDatagram {
863 fn from(owned: OwnedFd) -> Self {