pub enum EmbeddingsError {
NotEnabled,
LogitsNotEnabled,
NonePoolType,
}
Expand description
When embedding related functions fail
Variants§
NotEnabled
Embeddings weren’t enabled in the context options
LogitsNotEnabled
Logits weren’t enabled for the given token
NonePoolType
The given sequence index exceeds the max sequence id
Trait Implementations§
Source§impl Debug for EmbeddingsError
impl Debug for EmbeddingsError
Source§impl Display for EmbeddingsError
impl Display for EmbeddingsError
Source§impl Error for EmbeddingsError
impl Error for EmbeddingsError
1.30.0 · 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<EmbeddingsError> for LLamaCppError
impl From<EmbeddingsError> for LLamaCppError
Source§fn from(source: EmbeddingsError) -> Self
fn from(source: EmbeddingsError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EmbeddingsError
impl PartialEq for EmbeddingsError
impl Eq for EmbeddingsError
impl StructuralPartialEq for EmbeddingsError
Auto Trait Implementations§
impl Freeze for EmbeddingsError
impl RefUnwindSafe for EmbeddingsError
impl Send for EmbeddingsError
impl Sync for EmbeddingsError
impl Unpin for EmbeddingsError
impl UnwindSafe for EmbeddingsError
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