pub trait AsSocket {
    // Required method
    fn as_socket(&self) -> BorrowedSocket<'_>;
}Expand description
Required Methods§
Sourcefn as_socket(&self) -> BorrowedSocket<'_>
 
fn as_socket(&self) -> BorrowedSocket<'_>
Implementors§
impl AsSocket for TcpListener
Available on crate feature 
net and Windows only.impl AsSocket for TcpSocket
Available on crate feature 
net and Windows only.impl AsSocket for TcpStream
Available on crate feature 
net and Windows only.impl AsSocket for UdpSocket
Available on Windows only.