use bitflags::bitflags;
bitflags! {
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
pub struct Interest: u8 {
const READABLE = 0b0001;
const WRITABLE = 0b0010;
const PRIORITY = 0b0100;
const CLOSED = 0b1000;
}
}
impl Interest {
pub const fn readable_writable() -> Self {
Self::READABLE.union(Self::WRITABLE)
}
}