Trait FromRawSocket
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.Required Methods
unsafe fn from_raw_socket(sock: RawSocket) -> Self
Dyn Compatibility
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors
impl FromRawSocket for TcpSocket
Available on Windows and crate feature
net only.
MIT License
Copyright © Tokio Contributors
https://docs.rs/tokio/1.53.1/tokio/doc/os/windows/io/trait.FromRawSocket.html