pub struct ThinkLoopBuilder { /* private fields */ }Expand description
Implementations§
Source§impl ThinkLoopBuilder
impl ThinkLoopBuilder
Sourcepub fn max_iterations(self, n: usize) -> Self
pub fn max_iterations(self, n: usize) -> Self
Sets the iteration cap (default: 10).
Sourcepub fn convergence_threshold(self, t: f64) -> Self
pub fn convergence_threshold(self, t: f64) -> Self
Sets the convergence threshold (default: 0.25).
Sourcepub fn k_proportional(self, kp: f64) -> Self
pub fn k_proportional(self, kp: f64) -> Self
Sets the proportional gain Kp (default: 1.0).
Sourcepub fn k_integral(self, ki: f64) -> Self
pub fn k_integral(self, ki: f64) -> Self
Sets the integral gain Ki (default: 0.05).
Sourcepub fn stall_patience(self, n: usize) -> Self
pub fn stall_patience(self, n: usize) -> Self
Sets the stall patience (default: 3).
Sourcepub fn promotion_threshold(self, t: f64) -> Self
pub fn promotion_threshold(self, t: f64) -> Self
Sets the hot→cold promotion threshold (default: 0.5).
Sourcepub fn hot_capacity(self, cap: usize) -> Self
pub fn hot_capacity(self, cap: usize) -> Self
Sets the hot store capacity (default: 16).
Auto Trait Implementations§
impl Freeze for ThinkLoopBuilder
impl RefUnwindSafe for ThinkLoopBuilder
impl Send for ThinkLoopBuilder
impl Sync for ThinkLoopBuilder
impl Unpin for ThinkLoopBuilder
impl UnsafeUnpin for ThinkLoopBuilder
impl UnwindSafe for ThinkLoopBuilder
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