Trait io_extras::grip::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

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