Skip to content

Commit

Permalink
✨ alert trait
Browse files Browse the repository at this point in the history
  • Loading branch information
comavius committed Dec 23, 2024
1 parent 7e09d5d commit 0df24c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions judge_control_app/src/alert.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pub trait Alert {
fn send_alert<T: std::fmt::Display>(&self, message: T);
}
1 change: 1 addition & 0 deletions judge_control_app/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pub mod remote_exec;
pub mod spmc_oneshot;
pub mod submission_logic;
pub mod text_resource_repository;
pub mod alert;
1 change: 1 addition & 0 deletions judge_control_app/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ mod remote_exec;
mod spmc_oneshot;
mod submission_logic;
mod text_resource_repository;
mod alert;

fn main() {
println!("Hello, world!");
Expand Down

0 comments on commit 0df24c1

Please sign in to comment.