pub struct CouplingAffinitySpec {
pub preferred_strength: f64,
pub preferred_persistence: CouplingPersistence,
pub preferred_scope: CouplingScope,
pub max_concurrent_couplings: Option<usize>,
}Expand description
Affinity specification for preferred coupling patterns
Fields§
§preferred_strength: f64Preferred coupling strength
preferred_persistence: CouplingPersistencePreferred persistence
preferred_scope: CouplingScopePreferred scope
max_concurrent_couplings: Option<usize>Maximum number of concurrent couplings
Trait Implementations§
Source§impl Clone for CouplingAffinitySpec
impl Clone for CouplingAffinitySpec
Source§fn clone(&self) -> CouplingAffinitySpec
fn clone(&self) -> CouplingAffinitySpec
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 CouplingAffinitySpec
impl Debug for CouplingAffinitySpec
Source§impl Default for CouplingAffinitySpec
impl Default for CouplingAffinitySpec
Source§impl<'de> Deserialize<'de> for CouplingAffinitySpec
impl<'de> Deserialize<'de> for CouplingAffinitySpec
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 CouplingAffinitySpec
impl RefUnwindSafe for CouplingAffinitySpec
impl Send for CouplingAffinitySpec
impl Sync for CouplingAffinitySpec
impl Unpin for CouplingAffinitySpec
impl UnwindSafe for CouplingAffinitySpec
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