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 RawSockets—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 UnsafeSocketimpl Send for UnsafeSocketimpl Sync for UnsafeSocketimpl Unpin for UnsafeSocketimpl UnwindSafe for UnsafeSocketBlanket Implementations
Mutably borrows from an owned value. Read more