pub enum EffectKind {
Cost,
Fallible,
Llm,
Network,
NonDeterministic,
Process,
Pure,
Unknown,
}Expand description
The variant name of an Effect, without associated data.
Used by [EffectPolicy] to allow/deny whole classes of effects regardless
of their parameters (e.g. deny all Llm calls irrespective of which model).
Variants§
Trait Implementations§
Source§impl Clone for EffectKind
impl Clone for EffectKind
Source§fn clone(&self) -> EffectKind
fn clone(&self) -> EffectKind
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 EffectKind
impl Debug for EffectKind
Source§impl<'de> Deserialize<'de> for EffectKind
impl<'de> Deserialize<'de> for EffectKind
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 EffectKind
impl Display for EffectKind
Source§impl Hash for EffectKind
impl Hash for EffectKind
Source§impl Ord for EffectKind
impl Ord for EffectKind
Source§fn cmp(&self, other: &EffectKind) -> Ordering
fn cmp(&self, other: &EffectKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EffectKind
impl PartialEq for EffectKind
Source§impl PartialOrd for EffectKind
impl PartialOrd for EffectKind
Source§impl Serialize for EffectKind
impl Serialize for EffectKind
impl Eq for EffectKind
impl StructuralPartialEq for EffectKind
Auto Trait Implementations§
impl Freeze for EffectKind
impl RefUnwindSafe for EffectKind
impl Send for EffectKind
impl Sync for EffectKind
impl Unpin for EffectKind
impl UnsafeUnpin for EffectKind
impl UnwindSafe for EffectKind
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