io_extras::grip

Trait 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.

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§