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 AsRawHandle::as_raw_handle
, but isn’t unsafe because it
doesn’t imply a dereference.
Like IntoRawHandle::into_raw_handle
, but isn’t unsafe because it
doesn’t imply a dereference.
Like FromRawHandle::from_raw_handle
, 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
.
Extracts the raw handle, without taking any ownership.
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Like AsRawHandle::as_raw_handle
and AsRawSocket::as_raw_socket
but can return either type. Read more
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Constructs a new I/O object from the specified raw handle. Read more
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Consumes this object, returning the raw underlying handle. Read more
UnsafeFile
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Like IntoRawHandle::into_raw_handle
and
IntoRawSocket::into_raw_socket
but can return either type. Read more
The Windows HANDLE
type may be sent between threads (despite
containing a *mut void
, which in general isn’t Send
).
Auto Trait Implementations
impl RefUnwindSafe for UnsafeFile
impl !Sync for UnsafeFile
impl Unpin for UnsafeFile
impl UnwindSafe for UnsafeFile
Blanket Implementations
Mutably borrows from an owned value. Read more