Skip to main content

ToSharedFd

Trait ToSharedFd 

Source
pub trait ToSharedFd<T> {
    // Required method
    fn to_shared_fd(&self) -> SharedFd<T>;
}
Expand description

Get a clone of SharedFd.

Required Methods§

Source

fn to_shared_fd(&self) -> SharedFd<T>

Return a cloned SharedFd.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> ToSharedFd<T> for SharedFd<T>