pub enum Cause {
NoEntry {
command: String,
swallowed_by: Option<String>,
},
Reach(String),
}Expand description
Why safe-chains did not approve the command.
Variants§
NoEntry
No researched entry for the resolved command name.
Fields
Reach(String)
A researched command reaching somewhere it may not, already phrased by ReachReason.
Implementations§
Source§impl Cause
impl Cause
Sourcepub fn no_entry(command: &str) -> Self
pub fn no_entry(command: &str) -> Self
The NoEntry cause for a command line: the name the shell would RUN, and the assignment
that swallowed it when one did.
A leading run of NAME=VALUE words is an environment prefix; the first word after it is the
program. That is the whole parse surprise: RUSTDOCFLAGS=-D warnings cargo doc runs
warnings, and the message never said so, which made the refusal look arbitrary. The bug
was otherwise silent — bash: warnings: command not found matches neither ^error nor
^warning, so the user’s own grep swallowed it too.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Cause
impl RefUnwindSafe for Cause
impl Send for Cause
impl Sync for Cause
impl Unpin for Cause
impl UnsafeUnpin for Cause
impl UnwindSafe for Cause
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