asimov_core/module/
registration.rs

1// This is free and unencumbered software released into the public domain.
2
3use crate::Named;
4use core::fmt::Debug;
5
6pub trait ModuleRegistration: Named + Debug {
7    fn is_enabled(&self) -> bool {
8        true
9    }
10
11    fn enable(&mut self) -> Result<bool, ()>;
12
13    fn disable(&mut self) -> Result<bool, ()>;
14}