pub enum Event {
Read(Read),
Appeared(InstanceId),
Withdrawn,
Timer,
Lock(bool),
Reminted(InstanceId),
}Expand description
What the runtime tells an Elector.
Variants§
Read(Read)
The read a Step::Read asked for (§2.5, §2.8, §2.9).
Appeared(InstanceId)
The watch heard an interface token of the interface appear at the address, held by this instance (§2.7, §2.9).
Withdrawn
The watch heard the address’s interface tokens withdrawn, leaving none held: one event for a burst (§2.8).
Timer
The timer the last step armed fired: the retry interval, or the grace.
Lock(bool)
external: the deployment’s lock taken (true) or lost (§2.11).
Reminted(InstanceId)
The candidate’s own re-mint (core §1.5, §8.1; text 0.2, F-209): the new id is its own from then on, and every former id is its own, never another holder or another candidate. The runtime tells it before the new id’s token is declared, in every state.
Trait Implementations§
impl Eq for Event
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Forget for Event
impl Freeze for Event
impl Move for Event
impl RefUnwindSafe for Event
impl Send for Eventwhere
RawVecInner: Send,
impl Sync for Eventwhere
RawVecInner: Sync,
impl Unpin for Event
impl UnsafeUnpin for Eventwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Seen>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Eventwhere
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more