#[repr(C)]pub struct CoherenceConfig {
pub min_coherence_threshold: u16,
pub enable_scheduler_hints: bool,
pub track_deltas: bool,
pub decay_rate: u16,
pub initial_coherence: u16,
}Expand description
Configuration for coherence tracking.
Fields§
§min_coherence_threshold: u16Minimum acceptable coherence score (0-10000 = 0.0-1.0). Operations that would lower coherence below this threshold may be rejected.
enable_scheduler_hints: boolWhether to enable coherence-aware scheduling hints.
track_deltas: boolWhether to track coherence deltas for mutation planning.
decay_rate: u16Decay rate for coherence over time (0-10000 = 0.0-1.0 per epoch). Set to 0 for no decay.
initial_coherence: u16Initial coherence score for new entries.
Implementations§
Source§impl CoherenceConfig
impl CoherenceConfig
Sourcepub const fn with_min_threshold(self, threshold: f32) -> Self
pub const fn with_min_threshold(self, threshold: f32) -> Self
Sets the minimum coherence threshold.
Sourcepub const fn with_scheduler_hints(self, enabled: bool) -> Self
pub const fn with_scheduler_hints(self, enabled: bool) -> Self
Enables or disables scheduler hints.
Sourcepub const fn with_delta_tracking(self, enabled: bool) -> Self
pub const fn with_delta_tracking(self, enabled: bool) -> Self
Enables or disables delta tracking.
Sourcepub const fn with_decay_rate(self, rate: f32) -> Self
pub const fn with_decay_rate(self, rate: f32) -> Self
Sets the coherence decay rate.
Sourcepub fn min_threshold_f32(&self) -> f32
pub fn min_threshold_f32(&self) -> f32
Returns the minimum threshold as a float.
Trait Implementations§
Source§impl Clone for CoherenceConfig
impl Clone for CoherenceConfig
Source§fn clone(&self) -> CoherenceConfig
fn clone(&self) -> CoherenceConfig
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 moreSource§impl Debug for CoherenceConfig
impl Debug for CoherenceConfig
Source§impl Default for CoherenceConfig
impl Default for CoherenceConfig
Source§impl PartialEq for CoherenceConfig
impl PartialEq for CoherenceConfig
impl Copy for CoherenceConfig
impl Eq for CoherenceConfig
impl StructuralPartialEq for CoherenceConfig
Auto Trait Implementations§
impl Freeze for CoherenceConfig
impl RefUnwindSafe for CoherenceConfig
impl Send for CoherenceConfig
impl Sync for CoherenceConfig
impl Unpin for CoherenceConfig
impl UnsafeUnpin for CoherenceConfig
impl UnwindSafe for CoherenceConfig
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