pub enum GgufError {
InvalidFormat(String),
Io(String),
UnsupportedTensorType(String),
InvalidTensorType(u32),
InvalidMagic(u32),
UnsupportedVersion(u32),
MissingMetadata(String),
InvalidMetadataType(String),
InvalidValueType(u32),
TensorNotFound(String),
}Expand description
Errors related to GGUF model loading.
Variants§
InvalidFormat(String)
Invalid GGUF file format.
Io(String)
IO error during GGUF loading.
UnsupportedTensorType(String)
Unsupported tensor type.
InvalidTensorType(u32)
Invalid tensor type code.
InvalidMagic(u32)
Invalid magic number.
UnsupportedVersion(u32)
Unsupported GGUF version.
MissingMetadata(String)
Missing metadata key.
InvalidMetadataType(String)
Invalid metadata type.
InvalidValueType(u32)
Invalid value type.
TensorNotFound(String)
Tensor not found.
Trait Implementations§
Source§impl Error for GgufError
impl Error for GgufError
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<FromUtf8Error> for GgufError
impl From<FromUtf8Error> for GgufError
Source§fn from(err: FromUtf8Error) -> Self
fn from(err: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GgufError
impl RefUnwindSafe for GgufError
impl Send for GgufError
impl Sync for GgufError
impl Unpin for GgufError
impl UnwindSafe for GgufError
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