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§

source

fn on_power_event(&self, evt: PowerEvent)

Called when there is a device-triggered power event.

Implementors§