pub trait AsSocket {
    fn as_socket(&self) -> BorrowedSocket<'_>;
}
🔬 This is a nightly-only experimental API. (io_safety #87074)
Available on Windows only.
Expand description

A trait to borrow the socket from an underlying object.

Required Methods

🔬 This is a nightly-only experimental API. (io_safety #87074)

Borrows the socket.

Implementors