pub struct CouplingParams {
pub source: ResonatorId,
pub target: ResonatorId,
pub initial_strength: f64,
pub initial_attention_cost: u64,
pub persistence: CouplingPersistence,
pub scope: CouplingScope,
pub symmetry: SymmetryType,
}Expand description
Parameters for establishing a new coupling
Fields§
§source: ResonatorId§target: ResonatorId§initial_strength: f64Initial coupling strength (MUST be <= 0.3 to prevent abrupt escalation)
initial_attention_cost: u64Initial attention cost
persistence: CouplingPersistencePersistence
scope: CouplingScopeScope
symmetry: SymmetryTypeSymmetry
Implementations§
Source§impl CouplingParams
impl CouplingParams
Sourcepub fn validate(&self) -> Result<(), CouplingValidationError>
pub fn validate(&self) -> Result<(), CouplingValidationError>
Validate parameters before coupling
Trait Implementations§
Source§impl Clone for CouplingParams
impl Clone for CouplingParams
Source§fn clone(&self) -> CouplingParams
fn clone(&self) -> CouplingParams
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 CouplingParams
impl Debug for CouplingParams
Source§impl<'de> Deserialize<'de> for CouplingParams
impl<'de> Deserialize<'de> for CouplingParams
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
Auto Trait Implementations§
impl Freeze for CouplingParams
impl RefUnwindSafe for CouplingParams
impl Send for CouplingParams
impl Sync for CouplingParams
impl Unpin for CouplingParams
impl UnwindSafe for CouplingParams
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