pub enum Effect {
Show 14 variants
IO,
State,
NonDet,
Exception,
Diverge,
Alloc,
Network,
FileSystem,
Log,
Time,
GPU,
Concurrent,
Env,
System,
}Expand description
A computational effect that can be tracked.
Variants§
IO
Input/output operations
State
State mutation
NonDet
Non-determinism (random number generation, etc.)
Exception
Exceptions/errors
Diverge
Divergence (non-termination)
Alloc
Memory allocation
Network
Network communication
FileSystem
File system access
Log
Logging/tracing
Time
Time-dependent operations
GPU
GPU operations
Concurrent
Concurrency/parallelism
Env
Environment variable access
System
System calls
Implementations§
Trait Implementations§
impl Copy for Effect
impl Eq for Effect
impl StructuralPartialEq for Effect
Auto Trait Implementations§
impl Freeze for Effect
impl RefUnwindSafe for Effect
impl Send for Effect
impl Sync for Effect
impl Unpin for Effect
impl UnwindSafe for Effect
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.