pub struct Trigger {
pub event: Option<EventId>,
pub changes: Condition,
}Expand description
What sets an expectation off: an event, a change the outside world makes to some states, or both at once.
Fields§
§event: Option<EventId>§changes: ConditionImplementations§
Source§impl Trigger
impl Trigger
Sourcepub fn is_none(&self) -> bool
pub fn is_none(&self) -> bool
No event and no change: the expectation is an invariant that holds whenever its Given does.
Sourcepub fn compatible(&self, o: &Trigger) -> bool
pub fn compatible(&self, o: &Trigger) -> bool
Could a single action set off both?
Trait Implementations§
impl Eq for Trigger
impl StructuralPartialEq for Trigger
Auto Trait Implementations§
impl Freeze for Trigger
impl RefUnwindSafe for Trigger
impl Send for Trigger
impl Sync for Trigger
impl Unpin for Trigger
impl UnsafeUnpin for Trigger
impl UnwindSafe for Trigger
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