pub enum Because {
BuiltInRule {
names: Vec<String>,
},
ProtectedPath {
path: String,
reason: ReachReason,
},
Unconfined {
path: String,
},
TooWide {
path: String,
},
RunsLater {
path: String,
},
RunsAnAgent {
name: String,
},
Unparseable,
}Expand description
Why nothing in the config can change the verdict.
Variants§
BuiltInRule
A known command, refused for an option, a subcommand or the way it is used.
ProtectedPath
A path a built-in rule protects, with the reason ReachReason gives.
Unconfined
A path built by an interpolation, which names nowhere in particular.
TooWide
A path too wide to grant in one rule (/, the home folder), or one with a wildcard.
RunsLater
A path that holds settings or programs that run later (agents’ settings, startup files, PATH).
RunsAnAgent
A command that runs an AI coding agent.
Unparseable
Trait Implementations§
impl Eq for Because
impl StructuralPartialEq for Because
Auto Trait Implementations§
impl Forget for Because
impl Freeze for Because
impl Move for Because
impl RefUnwindSafe for Because
impl Send for Because
impl Sync for Because
impl Unpin for Because
impl UnsafeUnpin for Because
impl UnwindSafe for Because
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.