We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65ec762 commit bfcde40Copy full SHA for bfcde40
1 file changed
crates/lambda-rs/src/runtimes/mod.rs
@@ -3,23 +3,3 @@ pub use application::{
3
ApplicationRuntime,
4
ApplicationRuntimeBuilder,
5
};
6
-
7
-pub trait Runtime {
8
- fn on_start(&mut self);
9
- fn on_stop(&mut self);
10
- fn run(self);
11
-}
12
13
-/// Builds & executes a runtime all in one good. It's a good idea to use this if you
14
-/// don't need to execute any code in between the building & execution stage of
15
-/// the runnable, but will not impact or modify the runtime in any way.
16
-pub fn build_and_start_kernel<T: Default + Runtime>() {
17
- let runtime = T::default();
18
- start_runtime(runtime);
19
20
21
-/// Simple function for starting any prebuilt Runnable.
22
-pub fn start_runtime<T: Runtime>(mut runtime: T) {
23
- runtime.on_start();
24
- runtime.run();
25
0 commit comments