Struct unsafe_io::UnsafeFile [−][src]
#[repr(transparent)]pub struct UnsafeFile(_);
Expand description
A non-owning unsafe I/O handle which on Windows is limited to handling what
Windows considers to be RawHandle
s—mainly files and pipes.
Implementations
Like AsUnsafeHandle::as_unsafe_handle
, but isn’t unsafe because it
doesn’t imply a dereference.
Like IntoUnsafeHandle::into_unsafe_handle
, but isn’t unsafe because
it doesn’t imply a dereference.
Like AsRawFd::as_raw_fd
, but isn’t unsafe because it
doesn’t imply a dereference.
Like IntoRawFd::into_raw_fd
, but isn’t unsafe because it
doesn’t imply a dereference.
Like FromRawFd::from_raw_fd
, but isn’t unsafe because it doesn’t
imply a dereference.
Trait Implementations
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Constructs a new instance of Self
from the given raw file
descriptor. Read more
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Consumes this object, returning the raw underlying file descriptor. Read more
Auto Trait Implementations
impl RefUnwindSafe for UnsafeFile
impl Send for UnsafeFile
impl Sync for UnsafeFile
impl Unpin for UnsafeFile
impl UnwindSafe for UnsafeFile
Blanket Implementations
Mutably borrows from an owned value. Read more