Skip to main content

dope_sys/io/reactor/submit/
poll.rs

1use std::os::fd;
2
3use crate::io::reactor::complete;
4
5/// A shutdown poll retaining the exact source descriptor and thread affinity.
6pub trait Poll<'a, T: complete::raw::Token>: Sized {
7    type Entry;
8
9    fn new(source: crate::engine::register::Source<'a>, token: T) -> Self;
10    fn multi(file: fd::BorrowedFd<'a>, token: T) -> Self;
11    fn entry(&self) -> &Self::Entry;
12}