dope_runtime/executor/startup.rs
1/// Compile-time behavior selected by an executor's shutdown source after its
2/// pinned application is installed.
3pub trait Startup {
4 #[doc(hidden)]
5 fn installed(&self);
6}
7
8impl Startup for () {
9 fn installed(&self) {}
10}
11
12impl Startup for crate::shutdown::Source {
13 fn installed(&self) {}
14}
15
16impl Startup for crate::process::Shutdown {
17 fn installed(&self) {
18 self.installed();
19 }
20}