Skip to main content

AsRawSocket

Trait AsRawSocket 

Source
pub trait AsRawSocket {
    // Required method
    fn as_raw_socket(&self) -> RawSocket;
}
Available on crate feature std and (Windows or crate feature docs) and 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.

Implementors§

Source§

impl AsRawSocket for TcpListener

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

impl AsRawSocket for TcpStream

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

impl AsRawSocket for UdpSocket

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