pub enum NpuError {
DeviceNotAvailable,
InitializationFailed(String),
ComputationError(String),
MemoryError(String),
InvalidShape(String),
UnsupportedOperation(String),
DeviceError(String),
PerformanceError(String),
SyncTimeout,
InvalidConfiguration(String),
}Expand description
Error types for the NPU driver.
Variants§
DeviceNotAvailable
InitializationFailed(String)
ComputationError(String)
MemoryError(String)
InvalidShape(String)
UnsupportedOperation(String)
DeviceError(String)
PerformanceError(String)
SyncTimeout
InvalidConfiguration(String)
Trait Implementations§
Source§impl Error for NpuError
impl Error for NpuError
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()
Auto Trait Implementations§
impl Freeze for NpuError
impl RefUnwindSafe for NpuError
impl Send for NpuError
impl Sync for NpuError
impl Unpin for NpuError
impl UnwindSafe for NpuError
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