pub struct ToolDefInvocationTrace { /* private fields */ }Expand description
Explicit handle for reading and clearing one extension’s invocation trace.
Cloning this handle intentionally shares trace state with the source
extension. Clone ToolDefExtension itself only for reusable command
configuration; extension clones receive fresh, isolated logs.
Implementations§
Source§impl ToolDefInvocationTrace
impl ToolDefInvocationTrace
Sourcepub fn take_invocations(&self) -> Vec<ScriptedCommandInvocation>
pub fn take_invocations(&self) -> Vec<ScriptedCommandInvocation>
Return and clear accumulated command invocation trace entries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolDefInvocationTrace
impl RefUnwindSafe for ToolDefInvocationTrace
impl Send for ToolDefInvocationTrace
impl Sync for ToolDefInvocationTrace
impl Unpin for ToolDefInvocationTrace
impl UnsafeUnpin for ToolDefInvocationTrace
impl UnwindSafe for ToolDefInvocationTrace
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