Trait FromRawFileDescriptor

Source
pub trait FromRawFileDescriptor {
    // Required method
    unsafe fn from_raw_file_descriptor(fd: RawFileDescriptor) -> Self;
}
Expand description

FromRawFileDescriptor is a platform independent trait for creating an instance from the underlying platform file descriptor type. Because the platform file descriptor type has no inherent ownership management, the from_raw_file_descriptor function is marked as unsafe to indicate that care must be taken by the caller to ensure that it is used appropriately.

Required Methods§

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.

Implementors§