pub enum Event<C, M, S> {
Cmd(C),
Msg {
from: NodeId,
msg: M,
},
Timer(TimerId),
ScopeEvent(S),
Init,
Recovery,
}Expand description
An event a protocol can be given. Used by drivers and by the test helper.
Variants§
Cmd(C)
Msg
Timer(TimerId)
A timer registered by this protocol, or by something it composes, has fired.
ScopeEvent(S)
A scope this protocol’s guarantees depended on has ended.
Init
This process is starting for the first time, with nothing written down.
Recovery
This process restarted, and something it wrote down survived.
Trait Implementations§
impl<C: Eq, M: Eq, S: Eq> Eq for Event<C, M, S>
Source§impl<C: PartialEq, M: PartialEq, S: PartialEq> PartialEq for Event<C, M, S>
impl<C: PartialEq, M: PartialEq, S: PartialEq> PartialEq for Event<C, M, S>
impl<C: PartialEq, M: PartialEq, S: PartialEq> StructuralPartialEq for Event<C, M, S>
Auto Trait Implementations§
impl<C, M, S> Freeze for Event<C, M, S>
impl<C, M, S> RefUnwindSafe for Event<C, M, S>
impl<C, M, S> Send for Event<C, M, S>
impl<C, M, S> Sync for Event<C, M, S>
impl<C, M, S> Unpin for Event<C, M, S>
impl<C, M, S> UnsafeUnpin for Event<C, M, S>
impl<C, M, S> UnwindSafe for Event<C, M, S>
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