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§
Sourceunsafe fn from_raw_grip(raw_grip: RawGrip) -> Self
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.