Trait io_extras::grip::FromRawGrip

source ·
pub trait FromRawGrip: FromRawFd {
    // Required method
    unsafe fn from_raw_grip(raw_grip: RawGrip) -> Self;
}
Expand description

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

Required Methods§

source

unsafe fn from_raw_grip(raw_grip: RawGrip) -> Self

Consume an RawGrip and convert into a Self.

§Safety

raw_grip must be a suitable grip for assuming ownership.

Object Safety§

This trait is not object safe.

Implementors§