pub enum CallmError {
GenericError(String),
LoaderFail(String),
UnsupportedModel,
IOError(Error),
CandleError(Error),
TemplateError(String),
TokenizerError {
msg: String,
},
SerdeError(Error),
}Expand description
An enumeration of all possible errors.
Variants§
GenericError(String)
A generic error with a custom message.
LoaderFail(String)
An error indicating a failure in the model loader with a custom message.
UnsupportedModel
An error indicating that the model is unsupported.
IOError(Error)
An error wrapping an I/O error from the standard library.
CandleError(Error)
An error wrapping a Candle error from the candle_core crate.
TemplateError(String)
An error indicating a failure in the template with a custom message.
TokenizerError
An error indicating a failure in the tokenizer with a custom message.
SerdeError(Error)
An error wrapping a serialization/deserialization error from the serde_json crate.
Trait Implementations§
Source§impl Debug for CallmError
impl Debug for CallmError
Source§impl Display for CallmError
impl Display for CallmError
Source§impl Error for CallmError
impl Error for CallmError
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<Error> for CallmError
impl From<Error> for CallmError
Source§impl From<Error> for CallmError
impl From<Error> for CallmError
Auto Trait Implementations§
impl Freeze for CallmError
impl !RefUnwindSafe for CallmError
impl Send for CallmError
impl Sync for CallmError
impl Unpin for CallmError
impl !UnwindSafe for CallmError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more