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.
Required methods
unsafe fn from_raw_file_descriptor(fd: RawFileDescriptor) -> Self[src]
unsafe fn from_raw_file_descriptor(fd: RawFileDescriptor) -> Self[src]Implementors
impl<T: FromRawFd> FromRawFileDescriptor for T[src]
impl<T: FromRawFd> FromRawFileDescriptor for T[src]