pub enum TasteVerdict {
Sweet,
Fresh,
Safe,
Rotten,
Toxic,
}Variants§
Implementations§
Source§impl TasteVerdict
impl TasteVerdict
pub const ALL: [Self; 5]
pub fn as_str(self) -> &'static str
pub fn allows_use(self) -> bool
pub fn base_gate_action(verdict: Option<Self>) -> GateAction
pub fn gate_action_for( operation: GateOperation, verdict: Option<Self>, ) -> GateAction
Sourcepub fn gate_action_for_env(
operation: GateOperation,
verdict: Option<Self>,
sandboxed: bool,
) -> GateAction
pub fn gate_action_for_env( operation: GateOperation, verdict: Option<Self>, sandboxed: bool, ) -> GateAction
Gate action with optional sandbox override. In sandbox mode, untasted and rotten spores proceed (toxic still blocks).
Trait Implementations§
Source§impl Clone for TasteVerdict
impl Clone for TasteVerdict
Source§fn clone(&self) -> TasteVerdict
fn clone(&self) -> TasteVerdict
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TasteVerdict
impl Debug for TasteVerdict
Source§impl<'de> Deserialize<'de> for TasteVerdict
impl<'de> Deserialize<'de> for TasteVerdict
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
Source§impl Display for TasteVerdict
impl Display for TasteVerdict
Source§impl FromStr for TasteVerdict
impl FromStr for TasteVerdict
Source§impl Hash for TasteVerdict
impl Hash for TasteVerdict
Source§impl PartialEq for TasteVerdict
impl PartialEq for TasteVerdict
Source§impl Serialize for TasteVerdict
impl Serialize for TasteVerdict
impl Copy for TasteVerdict
impl Eq for TasteVerdict
impl StructuralPartialEq for TasteVerdict
Auto Trait Implementations§
impl Freeze for TasteVerdict
impl RefUnwindSafe for TasteVerdict
impl Send for TasteVerdict
impl Sync for TasteVerdict
impl Unpin for TasteVerdict
impl UnsafeUnpin for TasteVerdict
impl UnwindSafe for TasteVerdict
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.