pub enum SniptError {
Io(Error),
Json(Error),
Enigo(String),
Keyboard(String),
DatabaseNotFound(String),
DaemonAlreadyRunning(u32),
DaemonNotRunning,
InvalidPid,
InvalidConfig(String),
Clipboard(String),
Other(String),
PermissionDenied(String),
}Variants§
Io(Error)
Json(Error)
Enigo(String)
Keyboard(String)
DatabaseNotFound(String)
DaemonAlreadyRunning(u32)
DaemonNotRunning
InvalidPid
InvalidConfig(String)
Clipboard(String)
Other(String)
PermissionDenied(String)
Trait Implementations§
Source§impl Debug for SniptError
impl Debug for SniptError
Source§impl Display for SniptError
impl Display for SniptError
Source§impl Error for SniptError
impl Error for SniptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for SniptError
impl From<Error> for SniptError
Auto Trait Implementations§
impl Freeze for SniptError
impl !RefUnwindSafe for SniptError
impl Send for SniptError
impl Sync for SniptError
impl Unpin for SniptError
impl !UnwindSafe for SniptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more