We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 692fcb1 commit fab81adCopy full SHA for fab81ad
kernel/src/platform/mpu.rs
@@ -11,11 +11,17 @@ use flux_support::*;
11
12
/// User mode access permissions.
13
#[derive(Copy, Clone, Debug)]
14
+#[flux_rs::refined_by(r: bool, w: bool, x: bool)]
15
pub enum Permissions {
16
+ #[flux::variant(Permissions[true, true, true])]
17
ReadWriteExecute,
18
+ #[flux::variant(Permissions[true, true, false])]
19
ReadWriteOnly,
20
+ #[flux::variant(Permissions[true, false, true])]
21
ReadExecuteOnly,
22
+ #[flux::variant(Permissions[true, false, false])]
23
ReadOnly,
24
+ #[flux::variant(Permissions[false, false, true])]
25
ExecuteOnly,
26
}
27
0 commit comments