Trait FromRawDescriptor

Source
pub trait FromRawDescriptor {
    // Required method
    unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self;
}

Required Methods§

Source

unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self

§Safety

Safe only if the caller ensures nothing has access to the descriptor after passing it to from_raw_descriptor

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.

Implementations on Foreign Types§

Source§

impl FromRawDescriptor for File

Source§

unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self

Source§

impl FromRawDescriptor for OwnedFd

Source§

unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self

Source§

impl FromRawDescriptor for UnixDatagram

Source§

unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self

Source§

impl FromRawDescriptor for UnixStream

Source§

unsafe fn from_raw_descriptor(descriptor: RawDescriptor) -> Self

Implementors§