Trait filedescriptor::FromRawFileDescriptor [−][src]
pub trait FromRawFileDescriptor {
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.