Carry output information on visible command all the way to C
This commit is contained in:
@ -6,12 +6,14 @@
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
use crate::outputs::OutputId;
|
||||
|
||||
/// The keyboard should hide after this has elapsed to prevent flickering.
|
||||
pub const HIDING_TIMEOUT: Duration = Duration::from_millis(200);
|
||||
|
||||
/// The outwardly visible state of visibility
|
||||
#[derive(PartialEq, Debug, Clone)]
|
||||
pub enum Outcome {
|
||||
Visible,
|
||||
Visible(OutputId),
|
||||
Hidden,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user