1 2 3 4 5 6
pub trait PowerManager { fn power_on(&mut self); fn power_off(&mut self); fn power(&mut self); fn is_on(&self) -> bool; }