pub enum PolicyAction {
Inspect,
Always,
Benign,
Observe,
Mutate,
Quit,
Key {
combo: String,
},
ClipboardSet,
}Expand description
How decide classifies an action.
Variants§
Inspect
policy_check. The app verdict is separate.
Always
Always allowed: wait, doctor, displays, list, pause, resume.
Benign
Read-only maintenance that does not name a denied app.
Observe
Tree, screenshot, or get-state. A denied target is refused.
Mutate
Changes the desktop.
Quit
Quit, including force quit. Allowed apps still need confirmation.
Key
A key combination.
ClipboardSet
clipboard_set (P8). Classified here so that phase can call decide.
Trait Implementations§
Source§impl Clone for PolicyAction
impl Clone for PolicyAction
Source§impl Debug for PolicyAction
impl Debug for PolicyAction
impl Eq for PolicyAction
Source§impl PartialEq for PolicyAction
impl PartialEq for PolicyAction
impl StructuralPartialEq for PolicyAction
Auto Trait Implementations§
impl Freeze for PolicyAction
impl RefUnwindSafe for PolicyAction
impl Send for PolicyAction
impl Sync for PolicyAction
impl Unpin for PolicyAction
impl UnsafeUnpin for PolicyAction
impl UnwindSafe for PolicyAction
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.