Trait std::os::windows::io::AsSocket
pub trait AsSocket { fn as_socket(&self) -> BorrowedSocket<'_>; }
This is supported on Windows only.
A trait to borrow the socket from an underlying object.
Required methods
fn as_socket(&self) -> BorrowedSocket<'_>
Borrows the socket.
Implementors
impl AsSocket for TcpListener
impl AsSocket for TcpStream
impl AsSocket for UdpSocket
impl AsSocket for BorrowedSocket<'_>
impl AsSocket for OwnedSocket
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/os/windows/io/trait.AsSocket.html