Trait compio_driver::FromRawFd 
source · pub trait FromRawFd {
    // Required method
    unsafe fn from_raw_fd(fd: RawFd) -> Self;
}Expand description
Contruct IO objects from raw fds.
Required Methods§
sourceunsafe fn from_raw_fd(fd: RawFd) -> Self
 
unsafe fn from_raw_fd(fd: RawFd) -> Self
Constructs a new IO object from the specified raw fd.
Safety
The fd passed in must:
- be a valid open handle or socket,
- be opened with FILE_FLAG_OVERLAPPEDif it’s a file handle,
- have not been attached to a driver.
Object Safety§
This trait is not object safe.