pub enum LoadSessionError {
FailedToLoad,
NullError(NulError),
PathToStrError(PathBuf),
InsufficientMaxLength {
n_out: usize,
max_tokens: usize,
},
}
Expand description
Failed to load a Session file
Variants§
FailedToLoad
llama.cpp failed to load the session file
NullError(NulError)
null byte in string
PathToStrError(PathBuf)
failed to convert path to str
InsufficientMaxLength
Insufficient max length
Trait Implementations§
Source§impl Debug for LoadSessionError
impl Debug for LoadSessionError
Source§impl Display for LoadSessionError
impl Display for LoadSessionError
Source§impl Error for LoadSessionError
impl Error for LoadSessionError
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 LoadSessionError
impl From<NulError> for LoadSessionError
Source§impl PartialEq for LoadSessionError
impl PartialEq for LoadSessionError
impl Eq for LoadSessionError
impl StructuralPartialEq for LoadSessionError
Auto Trait Implementations§
impl Freeze for LoadSessionError
impl RefUnwindSafe for LoadSessionError
impl Send for LoadSessionError
impl Sync for LoadSessionError
impl Unpin for LoadSessionError
impl UnwindSafe for LoadSessionError
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