pub struct Coupling { /* private fields */ }Expand description
A declared read/write coupling between a node and a signal.
Implementations§
Source§impl Coupling
impl Coupling
Sourcepub const fn new(name: &'static str, point: &'static dyn CouplingPoint) -> Self
pub const fn new(name: &'static str, point: &'static dyn CouplingPoint) -> Self
Create a coupling with the given path name and wiring point.
Sourcepub const fn veto(self, slot: u8) -> Self
pub const fn veto(self, slot: u8) -> Self
Mark this coupling as a veto write holding contributor slot.
Sourcepub const fn veto_slot(&self) -> Option<u8>
pub const fn veto_slot(&self) -> Option<u8>
This writer’s contributor slot, if the entry carries the veto marker.
Sourcepub const fn observed(self, observer: Observer) -> Self
pub const fn observed(self, observer: Observer) -> Self
Mark this coupling as observed with the given observer.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Coupling
impl !UnwindSafe for Coupling
impl Freeze for Coupling
impl Send for Coupling
impl Sync for Coupling
impl Unpin for Coupling
impl UnsafeUnpin for Coupling
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