File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
crates/lambda-rs/src/runtimes Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -3,23 +3,3 @@ pub use application::{
3
3
ApplicationRuntime ,
4
4
ApplicationRuntimeBuilder ,
5
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
- }
You can’t perform that action at this time.
0 commit comments