Enum llama_cpp_2::LLamaCppError
source · pub enum LLamaCppError {
BackendAlreadyInitialized,
DecodeError(DecodeError),
LlamaModelLoadError(LlamaModelLoadError),
LlamaContextLoadError(LlamaContextLoadError),
}
Expand description
All errors that can occur in the llama-cpp crate.
Variants§
BackendAlreadyInitialized
The backend was already initialized. This can generally be ignored as initializing the backend is idempotent.
DecodeError(DecodeError)
There was an error while decoding a batch.
LlamaModelLoadError(LlamaModelLoadError)
There was an error loading a model.
LlamaContextLoadError(LlamaContextLoadError)
There was an error creating a new model context.
Trait Implementations§
source§impl Debug for LLamaCppError
impl Debug for LLamaCppError
source§impl Display for LLamaCppError
impl Display for LLamaCppError
source§impl Error for LLamaCppError
impl Error for LLamaCppError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DecodeError> for LLamaCppError
impl From<DecodeError> for LLamaCppError
source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
source§impl From<LlamaContextLoadError> for LLamaCppError
impl From<LlamaContextLoadError> for LLamaCppError
source§fn from(source: LlamaContextLoadError) -> Self
fn from(source: LlamaContextLoadError) -> Self
Converts to this type from the input type.
source§impl From<LlamaModelLoadError> for LLamaCppError
impl From<LlamaModelLoadError> for LLamaCppError
source§fn from(source: LlamaModelLoadError) -> Self
fn from(source: LlamaModelLoadError) -> Self
Converts to this type from the input type.
source§impl PartialEq for LLamaCppError
impl PartialEq for LLamaCppError
source§fn eq(&self, other: &LLamaCppError) -> bool
fn eq(&self, other: &LLamaCppError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for LLamaCppError
impl StructuralEq for LLamaCppError
impl StructuralPartialEq for LLamaCppError
Auto Trait Implementations§
impl RefUnwindSafe for LLamaCppError
impl Send for LLamaCppError
impl Sync for LLamaCppError
impl Unpin for LLamaCppError
impl UnwindSafe for LLamaCppError
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