pub enum GgufError {
Nul(NulError),
InvalidPath,
Init(PathBuf),
}Expand description
Errors returned when opening a GGUF file.
Variants§
Nul(NulError)
The path contained an interior NUL byte and could not be converted to a C string.
InvalidPath
The path was not valid UTF-8 and could not be converted to a C string.
Init(PathBuf)
gguf_init_from_file returned null (missing file or not a valid GGUF).
Trait Implementations§
Source§impl Error for GgufError
impl Error for GgufError
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 GgufError
impl RefUnwindSafe for GgufError
impl Send for GgufError
impl Sync for GgufError
impl Unpin for GgufError
impl UnsafeUnpin 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