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