io_extras::grip

Trait AsGrip

Source
pub trait AsGrip: AsFd {
    // Required method
    fn as_grip(&self) -> BorrowedGrip<'_>;
}
Expand description

Portability abstraction over AsFd and AsHandleOrSocket.

Required Methods§

Source

fn as_grip(&self) -> BorrowedGrip<'_>

Extracts the grip.

Implementors§

Source§

impl<T: AsFd> AsGrip for T