pub enum SafetensorsStoreError {
Safetensors(SafeTensorError),
Io(Error),
TensorNotFound(String),
ValidationFailed(String),
Other(String),
}Expand description
Errors that can occur during SafeTensors operations.
Variants§
Safetensors(SafeTensorError)
SafeTensors crate error.
Io(Error)
I/O error.
TensorNotFound(String)
Tensor not found.
ValidationFailed(String)
Validation failed.
Other(String)
Other error.
Trait Implementations§
Source§impl Debug for SafetensorsStoreError
impl Debug for SafetensorsStoreError
Source§impl Display for SafetensorsStoreError
impl Display for SafetensorsStoreError
Source§impl Error for SafetensorsStoreError
impl Error for SafetensorsStoreError
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()
Source§impl From<Error> for SafetensorsStoreError
Available on crate feature std only.
impl From<Error> for SafetensorsStoreError
Available on crate feature
std only.Source§impl From<SafeTensorError> for SafetensorsStoreError
impl From<SafeTensorError> for SafetensorsStoreError
Source§fn from(e: SafeTensorError) -> Self
fn from(e: SafeTensorError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SafetensorsStoreError
impl !RefUnwindSafe for SafetensorsStoreError
impl Send for SafetensorsStoreError
impl Sync for SafetensorsStoreError
impl Unpin for SafetensorsStoreError
impl !UnwindSafe for SafetensorsStoreError
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