Trait io_extras::grip::FromRawGrip
source · [−]pub trait FromRawGrip: FromRawFd {
unsafe fn from_raw_grip(raw_grip: RawGrip) -> Self;
}Expand description
Portability abstraction over FromFd and
FromHandleOrSocket.
Required methods
unsafe 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.