dope-sys 0.26.0

Typed operating-system call contracts
Documentation
1
2
3
4
5
6
7
8
9
use std::os::fd;

pub trait Id: Copy + Eq {
    type Slot: Copy + Eq;

    fn new(slot: Self::Slot, fd: fd::RawFd) -> Self;
    fn slot(self) -> Self::Slot;
    fn fd(self) -> fd::RawFd;
}