pub enum ModelSourceError {
MissingLocalFile(PathBuf),
HuggingFaceDisabled,
HuggingFaceDownload(String),
MissingRepoId,
MissingFilename,
MissingDirectory,
}Variants§
MissingLocalFile(PathBuf)
HuggingFaceDisabled
HuggingFaceDownload(String)
MissingRepoId
MissingFilename
MissingDirectory
Trait Implementations§
Source§impl Debug for ModelSourceError
impl Debug for ModelSourceError
Source§impl Display for ModelSourceError
impl Display for ModelSourceError
Source§impl Error for ModelSourceError
impl Error for ModelSourceError
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()
Auto Trait Implementations§
impl Freeze for ModelSourceError
impl RefUnwindSafe for ModelSourceError
impl Send for ModelSourceError
impl Sync for ModelSourceError
impl Unpin for ModelSourceError
impl UnsafeUnpin for ModelSourceError
impl UnwindSafe for ModelSourceError
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