#[repr(transparent)]pub struct OwnedFd { /* private fields */ }
Expand description
A wrapper around io_lifetimes::OwnedFd
which closes the file descriptor
using rustix
’s own close
rather than libc’s close
.
Trait Implementations
A version of from_raw_fd
for use with Winsock2 API. Read more
A version of into_raw_fd
for use with Winsock2 API. Read more
Auto Trait Implementations
impl RefUnwindSafe for OwnedFd
impl UnwindSafe for OwnedFd
Blanket Implementations
Borrows the reference.
pub fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
pub fn as_socketlike_view<Target>(&self) -> SocketlikeView<'_, Target> where
Target: FromSocketlike + IntoSocketlike,
Return a borrowing view of a resource which dereferences to a &Target
or &mut Target
. Read more
Mutably borrows from an owned value. Read more