/// Local context for the time driver, used when the runtime wants to /// fire/cancel timers. pub(crate) struct LocalContext { pub(crate) wheel: Wheel, pub(crate) registration_queue: RegistrationQueue, pub(crate) canc_tx: cancellation_queue::Sender, pub(crate) canc_rx: cancellation_queue::Receiver,
}
pub(crate) enum TempLocalContext<'a> { /// The runtime is running, we can access it.
Running {
registration_queue: &'a mut RegistrationQueue,
elapsed: u64,
}, #[cfg(feature = "rt-multi-thread")] /// The runtime is shutting down, no timers can be registered.
Shutdown,
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.