pub enum HardwareQueryError {
SystemInfoUnavailable(String),
DeviceNotFound(String),
PlatformNotSupported(String),
PermissionDenied(String),
IoError(Error),
SerializationError(Error),
GPUDriverError(String),
InvalidConfiguration(String),
Unknown(String),
}
Expand description
Error types that can occur during hardware querying
Variants§
System information is not available
DeviceNotFound(String)
Hardware device not found
PlatformNotSupported(String)
Platform not supported
PermissionDenied(String)
Permission denied accessing hardware information
IoError(Error)
I/O error occurred
SerializationError(Error)
Serialization error
GPUDriverError(String)
GPU driver error
InvalidConfiguration(String)
Invalid hardware configuration
Unknown(String)
Unknown error
Implementations§
Source§impl HardwareQueryError
impl HardwareQueryError
pub fn device_not_found(msg: impl Into<String>) -> Self
pub fn platform_not_supported(msg: impl Into<String>) -> Self
pub fn permission_denied(msg: impl Into<String>) -> Self
pub fn gpu_driver_error(msg: impl Into<String>) -> Self
pub fn invalid_configuration(msg: impl Into<String>) -> Self
pub fn unknown(msg: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for HardwareQueryError
impl Debug for HardwareQueryError
Source§impl Display for HardwareQueryError
impl Display for HardwareQueryError
Source§impl Error for HardwareQueryError
impl Error for HardwareQueryError
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 HardwareQueryError
impl From<Error> for HardwareQueryError
Auto Trait Implementations§
impl Freeze for HardwareQueryError
impl !RefUnwindSafe for HardwareQueryError
impl Send for HardwareQueryError
impl Sync for HardwareQueryError
impl Unpin for HardwareQueryError
impl !UnwindSafe for HardwareQueryError
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