pub enum FitError {
Failure,
Error,
}Expand description
Error returned by LlamaModelParams::fit_params.
Variants§
Failure
Could not find allocations that are projected to fit available memory.
Error
A hard error occurred during fitting (e.g. model not found at the specified path).
Trait Implementations§
Source§impl Error for FitError
impl Error for FitError
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<FitError> for LlamaCppError
impl From<FitError> for LlamaCppError
impl Copy for FitError
impl Eq for FitError
impl StructuralPartialEq for FitError
Auto Trait Implementations§
impl Freeze for FitError
impl RefUnwindSafe for FitError
impl Send for FitError
impl Sync for FitError
impl Unpin for FitError
impl UnsafeUnpin for FitError
impl UnwindSafe for FitError
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