pub enum WakeSource {
Condition,
Host,
}Expand description
The wake policy’s host-source discriminant
(docs/flow-suspension-spec.md §2 point 4; docs/effects-spec.md
§13.1). FS-1 records the discriminant only — the host-side wake plumbing
(wake_when, dormant spawn, cancellation-to-false) is FS-4 scope; today
only Self::Condition is ever compiler-produced, but the format
reserves Self::Host for the host-driven wake sources §3 names as a
future (PROPOSED-only) ink spelling, so the wire shape doesn’t need a
breaking change to add it later.
Variants§
Condition
An ink-authored await <condition> / while await <condition> — the
compiled condition fn (WakePolicy::condition) drives
re-evaluation per the wake contract (docs/effects-spec.md §13.1).
Host
A host-driven wake source (e.g. next-frame) with no compiled ink condition fn — the host owns re-evaluation directly (§3, §13.1).
Trait Implementations§
Source§impl Clone for WakeSource
impl Clone for WakeSource
Source§fn clone(&self) -> WakeSource
fn clone(&self) -> WakeSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more