pub struct RunControl {
pub cancellation: Option<RunCancellation>,
pub permissions: Option<ToolPermissionGate>,
}Expand description
Everything a host may attach to one run.
The default attaches nothing, and a run executed with it emits exactly the Events it emitted before control existed. Recorded benchmark campaigns depend on that.
Fields§
§cancellation: Option<RunCancellation>§permissions: Option<ToolPermissionGate>Absent means no gate at all: every call runs, and no permission Event is recorded.
Implementations§
Source§impl RunControl
impl RunControl
pub fn is_cancelled(&self) -> bool
Trait Implementations§
Source§impl Clone for RunControl
impl Clone for RunControl
Source§impl Debug for RunControl
impl Debug for RunControl
Auto Trait Implementations§
impl Forget for RunControl
impl Freeze for RunControl
impl Move for RunControl
impl RefUnwindSafe for RunControl
impl Send for RunControl
impl Sync for RunControl
impl Unpin for RunControl
impl UnsafeUnpin for RunControl
impl UnwindSafe for RunControl
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