Skip to main content

create_power_manager

Function create_power_manager 

Source
pub fn create_power_manager(
    model: Model,
) -> Result<Box<dyn PowerManager>, PowerError>
Expand description

Creates a Kobo PowerManager instance.

This factory function instantiates a box-wrapped KoboPowerManager implementing the PowerManager trait.