Skip to main content

async_fuser/ll/flags/
poll_flags.rs

1use std::fmt::Display;
2use std::fmt::Formatter;
3
4use bitflags::bitflags;
5
6bitflags! {
7    /// Poll flags.
8    #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
9    pub struct PollFlags: u32 {
10        /// Request poll notify.
11        const FUSE_POLL_SCHEDULE_NOTIFY = 1 << 0;
12    }
13}
14
15impl Display for PollFlags {
16    fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
17        Display::fmt(&self.bits(), f)
18    }
19}