pub enum ShellAsk {
Dangerous,
Always,
}Expand description
What the shell puts to a person when its policy is Policy::Ask.
Variants§
Dangerous
Only a command that can destroy something: rm, sudo, dd, a forced push.
Always
Every command, as the interface did before 0.5.1. Kept for a machine where a prompt per call is the point — a shared box, a demonstration, a first week with an agent.
Trait Implementations§
impl Copy for ShellAsk
Source§impl<'de> Deserialize<'de> for ShellAsk
impl<'de> Deserialize<'de> for ShellAsk
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ShellAsk
impl StructuralPartialEq for ShellAsk
Auto Trait Implementations§
impl Forget for ShellAsk
impl Freeze for ShellAsk
impl Move for ShellAsk
impl RefUnwindSafe for ShellAsk
impl Send for ShellAsk
impl Sync for ShellAsk
impl Unpin for ShellAsk
impl UnsafeUnpin for ShellAsk
impl UnwindSafe for ShellAsk
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.