You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
312 B
Rust

use std::string::FromUtf8Error;
use nix::errno::Errno;
#[derive(thiserror::Error, Debug, PartialEq, Eq)]
pub enum IoctlError {
#[error("Parsing to UTF8 failed")]
Utf8(#[from] FromUtf8Error),
#[error(transparent)]
Read(#[from] Errno),
#[error("Device not available")]
DevNotAvailable,
}