pub enum ToolActivity {
ByEffect,
Fixed(ActivityKind),
Memory,
}Expand description
What kind of work a call is on every card (see
ToolDispatchFacts::activity).
Variants§
ByEffect
A check, or a change when the call’s admitted semantics mutate.
Fixed(ActivityKind)
Always this kind.
Memory
Memory: recalling when the call only reads, remembering when it changes what is kept.
Implementations§
Source§impl ToolActivity
impl ToolActivity
Sourcepub fn kind(self, mutates: bool) -> ActivityKind
pub fn kind(self, mutates: bool) -> ActivityKind
The kind a call of this tool shows as, given whether its admitted semantics mutate state.
Trait Implementations§
Source§impl Clone for ToolActivity
impl Clone for ToolActivity
impl Copy for ToolActivity
Source§impl Debug for ToolActivity
impl Debug for ToolActivity
Source§impl Default for ToolActivity
impl Default for ToolActivity
impl Eq for ToolActivity
Source§impl PartialEq for ToolActivity
impl PartialEq for ToolActivity
impl StructuralPartialEq for ToolActivity
Auto Trait Implementations§
impl Forget for ToolActivity
impl Freeze for ToolActivity
impl Move for ToolActivity
impl RefUnwindSafe for ToolActivity
impl Send for ToolActivity
impl Sync for ToolActivity
impl Unpin for ToolActivity
impl UnsafeUnpin for ToolActivity
impl UnwindSafe for ToolActivity
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