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.

Implementors§

source§

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