pub enum EffectCategory {
Show 18 variants
IoFsRead,
IoFsWrite,
IoNetIn,
IoNetOut,
IoDbRead,
IoDbWrite,
StateGlobalRead,
StateGlobalWrite,
StateProcess,
EnvRead,
TimeRead,
TimeSleep,
Random,
ProcSpawn,
Throw,
Log,
Pure,
Other(String),
}Expand description
Effect category — either a well-known built-in or a user-defined domain
string (e.g. "midi.send", "audio.graph.connect").
User-defined categories are declared with asd effect declare --category
and are not inferred automatically by language adapters. Well-known
categories may be inferred.
§Extensibility
The Other(String) variant accepts any dot-separated namespace string.
Recommended namespaces for common domains:
audio.*— audio engine operations (audio.graph.connect,audio.graph.disconnect)midi.*— MIDI I/O (midi.send,midi.receive)scheduler.*— sequencer/lane control (scheduler.restart,scheduler.stop)ui.*— UI state mutations (ui.state.mutate)file.*— higher-level import/export (file.import,file.export)
Variants§
IoFsRead
IoFsWrite
IoNetIn
IoNetOut
IoDbRead
IoDbWrite
StateGlobalRead
StateGlobalWrite
StateProcess
EnvRead
TimeRead
TimeSleep
Random
ProcSpawn
Throw
Log
Pure
Other(String)
User-defined domain effect (e.g. "midi.send", "audio.graph.connect").
Implementations§
Source§impl EffectCategory
impl EffectCategory
pub fn as_str(&self) -> &str
Sourcepub fn is_low_signal(&self) -> bool
pub fn is_low_signal(&self) -> bool
Returns true for effects that are nearly universal and low-signal
(appear on most symbols, rarely indicate a meaningful side-effect).
Used to suppress noise in prepare_change and effects_of output.
Low-signal effects are only shown when they are the only effects on a symbol.
pub fn from_str(s: &str) -> Self
Trait Implementations§
Source§impl Clone for EffectCategory
impl Clone for EffectCategory
Source§impl Debug for EffectCategory
impl Debug for EffectCategory
Source§impl<'de> Deserialize<'de> for EffectCategory
impl<'de> Deserialize<'de> for EffectCategory
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EffectCategory
Source§impl Hash for EffectCategory
impl Hash for EffectCategory
Source§impl Ord for EffectCategory
impl Ord for EffectCategory
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EffectCategory
impl PartialEq for EffectCategory
Source§impl PartialOrd for EffectCategory
impl PartialOrd for EffectCategory
Source§impl Serialize for EffectCategory
impl Serialize for EffectCategory
impl StructuralPartialEq for EffectCategory
Auto Trait Implementations§
impl Freeze for EffectCategory
impl RefUnwindSafe for EffectCategory
impl Send for EffectCategory
impl Sync for EffectCategory
impl Unpin for EffectCategory
impl UnsafeUnpin for EffectCategory
impl UnwindSafe for EffectCategory
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.