Skip to main content

FromRawSocket

Trait FromRawSocket 

Source
pub trait FromRawSocket {
    // Required method
    unsafe fn from_raw_socket(sock: RawSocket) -> Self;
}
Available on docsrs and Unix and (crate features fs or net) only.
Expand description

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl FromRawSocket for TcpSocket

Available on Windows and crate feature net only.