FileDescWrapper

Trait FileDescWrapper 

Source
pub trait FileDescWrapper: Sized {
    // Required method
    fn try_unwrap(self) -> Result<FileDesc>;
}
Expand description

An interface for any wrapper which can be unwrapped into a FileDesc.

Required Methods§

Source

fn try_unwrap(self) -> Result<FileDesc>

Unwrap to an owned FileDesc handle.

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 FileDescWrapper for Box<FileDesc>

Source§

impl FileDescWrapper for Rc<FileDesc>

Source§

impl FileDescWrapper for Arc<FileDesc>

Implementors§