nvim_oxi_libuv/error.rs
1use thiserror::Error as ThisError;
2
3pub(crate) type Result<T> = std::result::Result<T, Error>;
4
5#[derive(Clone, Debug, Eq, PartialEq, ThisError)]
6pub enum Error {
7 #[error("Couldn't trigger async handle")]
8 AsyncTrigger,
9
10 #[error("Couldn't initialize handle")]
11 HandleInit,
12
13 #[error("Couldn't allocate memory for a new handle")]
14 HandleMemAlloc,
15
16 #[error("Couldn't start timer handle")]
17 TimerStart,
18
19 #[error("Couldn't stop timer handle")]
20 TimerStop,
21}