dope-sys 0.33.1

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

use crate::io::reactor::complete;

/// A shutdown poll retaining the exact source descriptor and thread affinity.
pub trait Poll<'a, T: complete::raw::Token>: Sized {
    type Entry;

    fn new(source: crate::engine::register::Source<'a>, token: T) -> Self;
    fn multi(file: fd::BorrowedFd<'a>, token: T) -> Self;
    fn entry(&self) -> &Self::Entry;
}