fuser/ll/flags/
ioctl_flags.rs1use std::fmt::Display;
2use std::fmt::Formatter;
3
4bitflags::bitflags! {
5 #[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
7 pub struct IoctlFlags: u32 {
8 const FUSE_IOCTL_COMPAT = 1 << 0;
10 const FUSE_IOCTL_UNRESTRICTED = 1 << 1;
12 const FUSE_IOCTL_RETRY = 1 << 2;
14 const FUSE_IOCTL_32BIT = 1 << 3;
16 const FUSE_IOCTL_DIR = 1 << 4;
18 const FUSE_IOCTL_COMPAT_X32 = 1 << 5;
20 }
21}
22
23impl Display for IoctlFlags {
24 fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
25 Display::fmt(&self.bits(), f)
26 }
27}