Struct RepairConfig
pub struct RepairConfig {
pub nudge_after: u32,
pub escalate_after: u32,
}Expand description
Configuration for the conversation repair system.
Fields§
§nudge_after: u32Turns without progress before first nudge.
escalate_after: u32Turns without progress before escalation flag is set.
Implementations§
§impl RepairConfig
impl RepairConfig
pub fn new() -> RepairConfig
pub fn new() -> RepairConfig
Create a new config with custom thresholds.
pub fn nudge_after(self, n: u32) -> RepairConfig
pub fn nudge_after(self, n: u32) -> RepairConfig
Set the nudge threshold.
pub fn escalate_after(self, n: u32) -> RepairConfig
pub fn escalate_after(self, n: u32) -> RepairConfig
Set the escalation threshold.
Trait Implementations§
§impl Clone for RepairConfig
impl Clone for RepairConfig
§fn clone(&self) -> RepairConfig
fn clone(&self) -> RepairConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for RepairConfig
impl Debug for RepairConfig
§impl Default for RepairConfig
impl Default for RepairConfig
§fn default() -> RepairConfig
fn default() -> RepairConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RepairConfig
impl RefUnwindSafe for RepairConfig
impl Send for RepairConfig
impl Sync for RepairConfig
impl Unpin for RepairConfig
impl UnwindSafe for RepairConfig
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