pub enum HiveGpuError {
Show 16 variants
InvalidDimension {
expected: usize,
got: usize,
},
DimensionMismatch {
expected: usize,
actual: usize,
},
VramLimitExceeded {
requested: usize,
limit: usize,
},
GpuOperationFailed(String),
NoDeviceAvailable,
BufferAllocationFailed(String),
DeviceInitializationFailed(String),
ShaderCompilationFailed(String),
MemoryAllocationFailed(String),
SearchFailed(String),
VectorNotFound(String),
InvalidConfiguration(String),
InternalError(String),
IoError(Error),
JsonError(Error),
Other(String),
}
Expand description
Main error type for Hive GPU operations
Variants§
InvalidDimension
Invalid vector dimension
DimensionMismatch
Dimension mismatch
VramLimitExceeded
VRAM limit exceeded
GpuOperationFailed(String)
GPU operation failed
NoDeviceAvailable
No GPU device available
BufferAllocationFailed(String)
Buffer allocation failed
DeviceInitializationFailed(String)
Device initialization failed
ShaderCompilationFailed(String)
Shader compilation failed
MemoryAllocationFailed(String)
Memory allocation failed
SearchFailed(String)
Search operation failed
VectorNotFound(String)
Vector not found
InvalidConfiguration(String)
Invalid configuration
InternalError(String)
Internal error
IoError(Error)
IO error
JsonError(Error)
JSON error
Other(String)
Other errors
Trait Implementations§
Source§impl Debug for HiveGpuError
impl Debug for HiveGpuError
Source§impl Display for HiveGpuError
impl Display for HiveGpuError
Source§impl Error for HiveGpuError
impl Error for HiveGpuError
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 HiveGpuError
impl From<Error> for HiveGpuError
Auto Trait Implementations§
impl Freeze for HiveGpuError
impl !RefUnwindSafe for HiveGpuError
impl Send for HiveGpuError
impl Sync for HiveGpuError
impl Unpin for HiveGpuError
impl !UnwindSafe for HiveGpuError
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