pub enum GgufParseError {
NotFound(String),
InvalidFormat(String),
Io(String),
}Expand description
Errors that can occur during GGUF parsing.
This is the domain-facing error type. Implementations may have richer
internal errors that convert to this type via From.
Variants§
NotFound(String)
The file does not exist.
InvalidFormat(String)
The file is not a valid GGUF file.
Io(String)
IO error while reading the file.
Trait Implementations§
Source§impl Debug for GgufParseError
impl Debug for GgufParseError
Source§impl Display for GgufParseError
impl Display for GgufParseError
Source§impl Error for GgufParseError
impl Error for GgufParseError
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 GgufParseError
impl RefUnwindSafe for GgufParseError
impl Send for GgufParseError
impl Sync for GgufParseError
impl Unpin for GgufParseError
impl UnwindSafe for GgufParseError
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