Skip to main content

AsRawSocket

Trait AsRawSocket 

Source
pub trait AsRawSocket {
    // Required method
    fn as_raw_socket(&self) -> RawSocket;
}
Available on crate feature docs and crate feature std and (Windows or crate feature docs) only.
Expand description

Extracts raw sockets.

Required Methods§

Source

fn as_raw_socket(&self) -> RawSocket

Extracts the underlying raw socket from this object.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl AsRawSocket for TcpListener

Available on crate feature default and non-target_os=unknown only.
Source§

impl AsRawSocket for TcpStream

Available on crate feature default and non-target_os=unknown only.
Source§

impl AsRawSocket for UdpSocket

Available on crate feature default and non-target_os=unknown only.