pub enum HTTError {
Config(String),
Storage(String),
Tensor(String),
Geometry(String),
DimensionMismatch {
expected: usize,
actual: usize,
},
Registry(String),
IO(Error),
Serialization(String),
Extension(String),
Initialization(String),
}Expand description
Main error type for HTT operations
Variants§
Config(String)
Configuration error
Storage(String)
Storage operation error
Tensor(String)
Tensor network operation error
Geometry(String)
Hyperbolic geometry error
DimensionMismatch
Dimension mismatch
Fields
Registry(String)
Component registry error
IO(Error)
I/O error (for file operations)
Serialization(String)
Serialization error
Extension(String)
Extension error
Initialization(String)
Initialization error
Trait Implementations§
Source§impl Error for HTTError
impl Error for HTTError
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<RegistryError> for HTTError
impl From<RegistryError> for HTTError
Source§fn from(err: RegistryError) -> Self
fn from(err: RegistryError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for HTTError
impl !UnwindSafe for HTTError
impl Freeze for HTTError
impl Send for HTTError
impl Sync for HTTError
impl Unpin for HTTError
impl UnsafeUnpin for HTTError
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