Skip to content

Commit bfcde40

Browse files
committed
[remove] duplicate definition.
1 parent 65ec762 commit bfcde40

File tree

1 file changed

+0
-20
lines changed
  • crates/lambda-rs/src/runtimes

1 file changed

+0
-20
lines changed

crates/lambda-rs/src/runtimes/mod.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,3 @@ pub use application::{
33
ApplicationRuntime,
44
ApplicationRuntimeBuilder,
55
};
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

Comments
 (0)