pub struct RepeatFuseConfig {
pub enabled: bool,
pub deny_after: u32,
pub terminate_after: u32,
}Expand description
Thresholds for the repeat fuse. 0 disables that rung individually; enabled: false disables
the whole fuse. Counting is per consecutive identical turn-signature: a different call (or the
same tool with different args) resets the streak to 1.
Fields§
§enabled: bool§deny_after: u32Consecutive identical turns before the call is DENIED (turn rolled back + directive note).
terminate_after: u32Consecutive identical turns before the run TERMINATES with NoProgress.
Trait Implementations§
Source§impl Clone for RepeatFuseConfig
impl Clone for RepeatFuseConfig
Source§fn clone(&self) -> RepeatFuseConfig
fn clone(&self) -> RepeatFuseConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RepeatFuseConfig
Source§impl Debug for RepeatFuseConfig
impl Debug for RepeatFuseConfig
Source§impl Default for RepeatFuseConfig
impl Default for RepeatFuseConfig
Source§impl<'de> Deserialize<'de> for RepeatFuseConfig
impl<'de> Deserialize<'de> for RepeatFuseConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RepeatFuseConfig
Source§impl PartialEq for RepeatFuseConfig
impl PartialEq for RepeatFuseConfig
Source§fn eq(&self, other: &RepeatFuseConfig) -> bool
fn eq(&self, other: &RepeatFuseConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RepeatFuseConfig
impl Serialize for RepeatFuseConfig
impl StructuralPartialEq for RepeatFuseConfig
Auto Trait Implementations§
impl Freeze for RepeatFuseConfig
impl RefUnwindSafe for RepeatFuseConfig
impl Send for RepeatFuseConfig
impl Sync for RepeatFuseConfig
impl Unpin for RepeatFuseConfig
impl UnsafeUnpin for RepeatFuseConfig
impl UnwindSafe for RepeatFuseConfig
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