Trait std::os::windows::io::AsSocket[][src]

pub trait AsSocket {
    fn as_socket(&self) -> BorrowedSocket<'_>;
}
🔬 This is a nightly-only experimental API. (io_safety #87074)
This is supported 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