[−][src]Trait driverkit::DriverControl
Driver life-cycle management trait
Required methods
fn state(&self) -> DriverState
fn set_state(&mut self, _: DriverState)
Provided methods
fn init(&mut self)
Initialize the device DriverState must be Uninitialized
fn attach(&mut self)
Attach the driver to the device (claim ownership) DriverState must be Initialized, Detached or Attached(x)
fn detach(&mut self)
Detach the driver from the device DriverState must be Detached, Attached(x)
fn set_sleep_level(&mut self, level: usize)
Detach the driver from the device DriverState must be Detached, Attached(x)