pub enum LlamaLoraAdapterInitError {
NullError(NulError),
NullResult,
PathToStrError(PathBuf),
}
Expand description
An error that can occur when loading a model.
Variants§
NullError(NulError)
There was a null byte in a provided string and thus it could not be converted to a C string.
NullResult
llama.cpp returned a nullptr - this could be many different causes.
PathToStrError(PathBuf)
Failed to convert the path to a rust str. This means the path was not valid unicode
Trait Implementations§
Source§impl Debug for LlamaLoraAdapterInitError
impl Debug for LlamaLoraAdapterInitError
Source§impl Display for LlamaLoraAdapterInitError
impl Display for LlamaLoraAdapterInitError
Source§impl Error for LlamaLoraAdapterInitError
impl Error for LlamaLoraAdapterInitError
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<NulError> for LlamaLoraAdapterInitError
impl From<NulError> for LlamaLoraAdapterInitError
impl Eq for LlamaLoraAdapterInitError
impl StructuralPartialEq for LlamaLoraAdapterInitError
Auto Trait Implementations§
impl Freeze for LlamaLoraAdapterInitError
impl RefUnwindSafe for LlamaLoraAdapterInitError
impl Send for LlamaLoraAdapterInitError
impl Sync for LlamaLoraAdapterInitError
impl Unpin for LlamaLoraAdapterInitError
impl UnwindSafe for LlamaLoraAdapterInitError
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