Skip to main content

CoherenceConfig

Struct CoherenceConfig 

Source
#[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: u16

Minimum acceptable coherence score (0-10000 = 0.0-1.0). Operations that would lower coherence below this threshold may be rejected.

§enable_scheduler_hints: bool

Whether to enable coherence-aware scheduling hints.

§track_deltas: bool

Whether to track coherence deltas for mutation planning.

§decay_rate: u16

Decay rate for coherence over time (0-10000 = 0.0-1.0 per epoch). Set to 0 for no decay.

§initial_coherence: u16

Initial coherence score for new entries.

Implementations§

Source§

impl CoherenceConfig

Source

pub const fn new() -> Self

Creates a new coherence configuration.

Source

pub const fn with_min_threshold(self, threshold: f32) -> Self

Sets the minimum coherence threshold.

Source

pub const fn with_scheduler_hints(self, enabled: bool) -> Self

Enables or disables scheduler hints.

Source

pub const fn with_delta_tracking(self, enabled: bool) -> Self

Enables or disables delta tracking.

Source

pub const fn with_decay_rate(self, rate: f32) -> Self

Sets the coherence decay rate.

Source

pub fn min_threshold_f32(&self) -> f32

Returns the minimum threshold as a float.

Trait Implementations§

Source§

impl Clone for CoherenceConfig

Source§

fn clone(&self) -> CoherenceConfig

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CoherenceConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CoherenceConfig

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl PartialEq for CoherenceConfig

Source§

fn eq(&self, other: &CoherenceConfig) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for CoherenceConfig

Source§

impl Eq for CoherenceConfig

Source§

impl StructuralPartialEq for CoherenceConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.