config: add on_idle
This commit is contained in:
parent
ce567b9999
commit
0e5b1b5e35
5 changed files with 25 additions and 0 deletions
|
|
@ -132,3 +132,8 @@ impl Display for PciId {
|
|||
write!(f, "{:04x}:{:04x}", self.vendor, self.model)
|
||||
}
|
||||
}
|
||||
|
||||
/// Sets the callback to be called when the display goes idle.
|
||||
pub fn on_idle<F: Fn() + 'static>(f: F) {
|
||||
get!().on_idle(f)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue