pub enum GuardVerdict {
Allow,
Refuse {
reason: String,
},
}Expand description
Outcome of checking a command against the playground guard.
Variants§
Allow
Command is allowed to run in the real shell.
Refuse
Command is refused; reason is a friendly, novice-facing explanation.
Implementations§
Source§impl GuardVerdict
impl GuardVerdict
pub fn is_allowed(&self) -> bool
Trait Implementations§
Source§impl Clone for GuardVerdict
impl Clone for GuardVerdict
Source§impl Debug for GuardVerdict
impl Debug for GuardVerdict
impl Eq for GuardVerdict
Source§impl PartialEq for GuardVerdict
impl PartialEq for GuardVerdict
impl StructuralPartialEq for GuardVerdict
Auto Trait Implementations§
impl Freeze for GuardVerdict
impl RefUnwindSafe for GuardVerdict
impl Send for GuardVerdict
impl Sync for GuardVerdict
impl Unpin for GuardVerdict
impl UnsafeUnpin for GuardVerdict
impl UnwindSafe for GuardVerdict
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.