awase 0.1.0

Awase (合わせ) — global hotkey abstraction: key types, parser, and platform-agnostic manager trait
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// Errors from the hotkey system.
#[derive(Debug, thiserror::Error)]
pub enum AwaseError {
    /// The hotkey string could not be parsed.
    #[error("invalid hotkey: {0}")]
    InvalidHotkey(String),

    /// A hotkey with this ID is already registered.
    #[error("hotkey already registered: id={0}")]
    AlreadyRegistered(u32),

    /// A platform-specific error.
    #[error("platform error: {0}")]
    Platform(String),
}