Skip to main content

prevent_alt_win_menu/
error.rs

1use thiserror::Error;
2
3#[derive(Debug, Error)]
4pub enum Error {
5    #[error("failed to register the keyboard hook")]
6    HookRegistrationFailed(std::io::Error),
7    #[error("the hook thread terminated unexpectedly")]
8    HookThreadCrashed,
9}
10
11pub type Result<T> = std::result::Result<T, Error>;