Struct unsafe_io::UnsafeSocket [−][src]
#[repr(transparent)]pub struct UnsafeSocket(_);
Expand description
A non-owning unsafe I/O handle which on Windows is limited to handling what
Windows considers to be RawSocket
s—mainly TCP streams and listeners
and UDP sockets.
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 FromRawFd::from_raw_fd
, but isn’t unsafe because it doesn’t
imply a dereference.
Trait Implementations
UnsafeSocket
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
UnsafeSocket
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
UnsafeSocket
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 UnsafeSocket
impl Send for UnsafeSocket
impl Sync for UnsafeSocket
impl Unpin for UnsafeSocket
impl UnwindSafe for UnsafeSocket
Blanket Implementations
Mutably borrows from an owned value. Read more