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

Object Safety§

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§