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 FromRawSocket::from_raw_socket
, 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
.
Like AsRawHandle::as_raw_handle
and AsRawSocket::as_raw_socket
but can return either type. Read more
UnsafeSocket
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Extracts the underlying raw socket from this object.
UnsafeSocket
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Creates a new I/O object from the given raw socket. Read more
UnsafeSocket
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
UnsafeSocket
doesn’t own its handle; see the comments for
impl AsRawFd for UnsafeHandle
.
Consumes this object, returning the raw underlying socket. 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