pub enum ReadinessSource {
None,
Notify,
Waitable(i32),
}Expand description
phase-521 W3 (RFC-0113 D4) — how a session reports that data arrived.
The executor’s park ends for exactly two reasons: the tier’s next deadline, or readiness. This is the readiness half, in one of two forms, and the executor picks its wait from it rather than blocking inside the transport.
Variants§
None
Neither form: the executor can only learn of an arrival by blocking in
Session::drive_io. RFC-0113 D5 refuses this once phase-521 W6
lands.
Notify
The backend calls the wake callback Session::set_wake_callback
installed when data arrives (a transport thread, a listener, an RX
interrupt).
Waitable(i32)
An OS handle that becomes readable when data arrives — a file descriptor on POSIX and NuttX. The executor multiplexes it with its own wake object and drives the session non-blockingly after the park. It must stay valid until the session closes.
Trait Implementations§
Source§impl Clone for ReadinessSource
impl Clone for ReadinessSource
Source§fn clone(&self) -> ReadinessSource
fn clone(&self) -> ReadinessSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more