pub enum HwError {
Registry(String),
UnknownDevice {
id: String,
known: Vec<String>,
},
Class(String),
BuildContradictsDevice {
device: String,
class: String,
macro_name: String,
requires: String,
defined: bool,
},
TensorCore {
class: String,
violations: String,
},
Model(String),
Plan(String),
Cost(CostError),
}Expand description
2026-09-30: Why a hardware plan could not be built.
Variants§
Registry(String)
2026-09-30: kernels/DEVICES.toml.
UnknownDevice
2026-09-30: A device id the registry does not list.
Class(String)
2026-09-30: A class’s HARDWARE.toml, FUSIONS.toml, KERNEL_FAMILIES.toml or sources.
BuildContradictsDevice
2026-09-30: The class’s build flags and the device’s instruction kinds disagree.
Fields
TensorCore
2026-10-02: A plan runs a policy-covered op off tensor cores with no exemption.
Fields
§
violations: String2026-10-02: One line per violation (tc_policy::describe).
Model(String)
2026-09-30: The model.
Plan(String)
2026-09-30: Fusing.
Cost(CostError)
2026-09-30: The roofline.
Trait Implementations§
Source§impl Error for HwError
impl Error for HwError
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()
impl StructuralPartialEq for HwError
Auto Trait Implementations§
impl Freeze for HwError
impl RefUnwindSafe for HwError
impl Send for HwError
impl Sync for HwError
impl Unpin for HwError
impl UnwindSafe for HwError
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