[][src]Trait filedescriptor::FromRawFileDescriptor

pub trait FromRawFileDescriptor {
    unsafe fn from_raw_file_descriptor(fd: RawFileDescriptor) -> Self;
}

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

Loading content...

Implementors

impl<T: FromRawFd> FromRawFileDescriptor for T[src]

Loading content...