pub enum ChatParseError {
NulError(NulError),
Utf8Error(FromUtf8Error),
NullResult,
FfiError(i32),
}Expand description
Failed to parse a chat response.
Variants§
NulError(NulError)
the string contained a null byte and thus could not be converted to a c string.
Utf8Error(FromUtf8Error)
the string could not be converted to utf8.
NullResult
llama.cpp returned a null pointer for the parse result.
FfiError(i32)
llama.cpp returned an error code.
Trait Implementations§
Source§impl Debug for ChatParseError
impl Debug for ChatParseError
Source§impl Display for ChatParseError
impl Display for ChatParseError
Source§impl Error for ChatParseError
impl Error for ChatParseError
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<FromUtf8Error> for ChatParseError
impl From<FromUtf8Error> for ChatParseError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ChatParseError
impl RefUnwindSafe for ChatParseError
impl Send for ChatParseError
impl Sync for ChatParseError
impl Unpin for ChatParseError
impl UnwindSafe for ChatParseError
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