dope_sys/engine/register.rs
1use crate::{Errno, io::reactor::Full};
2
3#[derive(Clone, Copy, Debug, Eq, PartialEq)]
4pub enum Interest {
5 Readable,
6 Closed,
7}
8
9#[derive(Clone, Copy, Debug)]
10pub struct Source<'a> {
11 pub fd: std::os::fd::BorrowedFd<'a>,
12 pub interest: Interest,
13}
14
15/// Exact failure while arming the engine's retained shutdown source.
16#[derive(Clone, Copy, Debug, Eq, PartialEq)]
17pub enum Error {
18 Full(Full),
19 Register(Errno),
20}