Trait vmotherboard::PowerEventHandler
source · pub trait PowerEventHandler: Send + Sync {
// Required method
fn on_power_event(&self, evt: PowerEvent);
}
Expand description
Handler for device-triggered power events.
Required Methods§
sourcefn on_power_event(&self, evt: PowerEvent)
fn on_power_event(&self, evt: PowerEvent)
Called when there is a device-triggered power event.