pub struct CouplingHandle {
pub id: CouplingId,
/* private fields */
}Expand description
Handle to a coupling relationship
Fields§
§id: CouplingIdImplementations§
Source§impl CouplingHandle
impl CouplingHandle
Sourcepub async fn strengthen(&self, delta: f64) -> Result<(), CouplingError>
pub async fn strengthen(&self, delta: f64) -> Result<(), CouplingError>
Strengthen the coupling
Sourcepub async fn decouple(self) -> Result<DecouplingResult, CouplingError>
pub async fn decouple(self) -> Result<DecouplingResult, CouplingError>
Safely sever the coupling
Sourcepub fn get_coupling(&self) -> Option<Coupling>
pub fn get_coupling(&self) -> Option<Coupling>
Get coupling state
Trait Implementations§
Source§impl Clone for CouplingHandle
impl Clone for CouplingHandle
Source§fn clone(&self) -> CouplingHandle
fn clone(&self) -> CouplingHandle
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 moreAuto Trait Implementations§
impl Freeze for CouplingHandle
impl !RefUnwindSafe for CouplingHandle
impl Send for CouplingHandle
impl Sync for CouplingHandle
impl Unpin for CouplingHandle
impl !UnwindSafe for CouplingHandle
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