pub enum ImporterError {
Unknown(String),
FailToDownloadPythonDependencies(String),
SqliteDataset(SqliteDatasetError),
PythonNotInstalled,
VenvNotInitialized,
}Available on crate features
sqlite or sqlite-bundled only.Expand description
Error type for HuggingfaceDatasetLoader.
Variants§
Unknown(String)
Unknown error.
FailToDownloadPythonDependencies(String)
Fail to download python dependencies.
SqliteDataset(SqliteDatasetError)
Fail to create sqlite dataset.
PythonNotInstalled
python3 is not installed.
VenvNotInitialized
venv environment is not initialized.
Trait Implementations§
Source§impl Debug for ImporterError
impl Debug for ImporterError
Source§impl Display for ImporterError
impl Display for ImporterError
Source§impl Error for ImporterError
impl Error for ImporterError
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<SqliteDatasetError> for ImporterError
impl From<SqliteDatasetError> for ImporterError
Source§fn from(source: SqliteDatasetError) -> Self
fn from(source: SqliteDatasetError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ImporterError
impl !RefUnwindSafe for ImporterError
impl Send for ImporterError
impl Sync for ImporterError
impl Unpin for ImporterError
impl !UnwindSafe for ImporterError
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