vmotherboard

Trait 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§