win-hotkeys 0.5.1

A lightweight, thread-safe rust library for system-wide hotkey management on Windows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//! Defines the error types used throughout the crate.
//! Errors are represented by the [`WHKError`] enum, which encapsulates
//! various error scenarios such as invalid keys or failed hotkey registration.

use thiserror::Error;

/// An enumeration of errors that may occur while using the crate.
#[derive(Error, Debug)]
pub enum WHKError {
    #[error("Hotkey registration failed. Hotkey is already in use.")]
    RegistrationFailed,
    #[error("Invalid key name `{0}`")]
    InvalidKey(String),
}