pub trait FromRawSocketlike: FromRawFd {
// Required method
unsafe fn from_raw_socketlike(raw: RawSocketlike) -> Self;
}
Expand description
This is a portability abstraction over Unix-like FromRawFd
and Windows’
FromRawSocket
.
Required Methods§
Sourceunsafe fn from_raw_socketlike(raw: RawSocketlike) -> Self
unsafe fn from_raw_socketlike(raw: RawSocketlike) -> Self
Constructs Self
from the raw value.
§Safety
This is unsafe
for the same reason as from_raw_fd
and
from_raw_socket
.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.