pub enum EmbedderError {
Io(Error),
ModelNotFound(PathBuf),
TokenizerNotFound(PathBuf),
TokenizerLoad(String),
Tokenize(String),
Download(String),
}Expand description
Errors that can occur during semantic compression.
Variants§
Io(Error)
I/O error (filesystem or network).
ModelNotFound(PathBuf)
Model file not found at the expected path.
TokenizerNotFound(PathBuf)
Tokenizer file not found at the expected path.
TokenizerLoad(String)
Failed to load the tokenizer.
Tokenize(String)
Failed to tokenize input text.
Download(String)
Network download error.
Trait Implementations§
Source§impl Debug for EmbedderError
impl Debug for EmbedderError
Source§impl Display for EmbedderError
impl Display for EmbedderError
Source§impl Error for EmbedderError
impl Error for EmbedderError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for EmbedderError
impl !UnwindSafe for EmbedderError
impl Freeze for EmbedderError
impl Send for EmbedderError
impl Sync for EmbedderError
impl Unpin for EmbedderError
impl UnsafeUnpin for EmbedderError
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