task: provide default impl for name()
This commit is contained in:
parent
faae4b40c7
commit
b6b3376fb4
@ -4,7 +4,9 @@ pub trait Task {
|
||||
fn tick(&mut self) {}
|
||||
fn start(&mut self) {}
|
||||
fn stop(&mut self) {}
|
||||
fn name(&self) -> &'static str;
|
||||
fn name(&self) -> &'static str {
|
||||
core::any::type_name::<Self>()
|
||||
}
|
||||
}
|
||||
|
||||
trait ScheduledState: std::fmt::Debug {
|
||||
|
Loading…
x
Reference in New Issue
Block a user