io_extras::grip

Trait FromGrip

Source
pub trait FromGrip: From<OwnedFd> {
    // Required method
    fn from_grip(owned_grip: OwnedGrip) -> Self;
}
Expand description

Portability abstraction over From<OwnedFd> and From<OwnedHandleOrSocket>.

Required Methods§

Source

fn from_grip(owned_grip: OwnedGrip) -> Self

Consume an OwnedGrip and convert into a Self.

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.

Implementors§

Source§

impl<T: From<OwnedFd>> FromGrip for T