Enum furiosa_device::DeviceError
source · pub enum DeviceError {
DeviceNotFound {
name: String,
},
DeviceBusy {
name: String,
},
IoError {
cause: Error,
},
PermissionDenied {
cause: Error,
},
UnknownArch {
arch: String,
rev: String,
},
IncompatibleDriver {
cause: String,
},
HwmonError {
device_index: u8,
cause: HwmonError,
},
PerformanceCounterError {
cause: PerformanceCounterError,
},
UnexpectedValue {
message: String,
},
ParseError {
message: String,
cause: String,
},
}
Expand description
An error that occurred during parsing or retrieving devices.
Variants§
DeviceNotFound
DeviceBusy
IoError
PermissionDenied
UnknownArch
IncompatibleDriver
HwmonError
PerformanceCounterError
Fields
§
cause: PerformanceCounterError
UnexpectedValue
ParseError
Trait Implementations§
source§impl Debug for DeviceError
impl Debug for DeviceError
source§impl Display for DeviceError
impl Display for DeviceError
source§impl Error for DeviceError
impl Error for DeviceError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 DeviceError
impl From<Error> for DeviceError
source§impl From<Infallible> for DeviceError
impl From<Infallible> for DeviceError
source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DeviceError
impl Send for DeviceError
impl Sync for DeviceError
impl Unpin for DeviceError
impl !UnwindSafe for DeviceError
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