pub enum PreinstallError {
Show 13 variants
InvalidModuleName(InvalidModuleName),
InvalidDependencyName(InvalidModuleName),
FetchRelease(FetchError),
NotAvailable(PlatformInfo),
Download(DownloadError),
FetchManifest(FetchError),
Dependency(String, Box<InstallError>),
FetchChecksum(FetchChecksumError),
VerifyChecksum(VerifyChecksumError),
CreateExtractDir(Error),
Extract(Error),
NoSuchModel(String),
InstallModel(HuggingfaceError),
}Available on crate feature
std only.Variants§
InvalidModuleName(InvalidModuleName)
InvalidDependencyName(InvalidModuleName)
FetchRelease(FetchError)
NotAvailable(PlatformInfo)
Download(DownloadError)
FetchManifest(FetchError)
Dependency(String, Box<InstallError>)
FetchChecksum(FetchChecksumError)
VerifyChecksum(VerifyChecksumError)
CreateExtractDir(Error)
Extract(Error)
NoSuchModel(String)
InstallModel(HuggingfaceError)
Trait Implementations§
Source§impl Debug for PreinstallError
impl Debug for PreinstallError
Source§impl Display for PreinstallError
impl Display for PreinstallError
Source§impl Error for PreinstallError
impl Error for PreinstallError
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<DownloadError> for PreinstallError
impl From<DownloadError> for PreinstallError
Source§fn from(source: DownloadError) -> Self
fn from(source: DownloadError) -> Self
Converts to this type from the input type.
Source§impl From<FetchChecksumError> for PreinstallError
impl From<FetchChecksumError> for PreinstallError
Source§fn from(source: FetchChecksumError) -> Self
fn from(source: FetchChecksumError) -> Self
Converts to this type from the input type.
Source§impl From<HuggingfaceError> for PreinstallError
impl From<HuggingfaceError> for PreinstallError
Source§fn from(source: HuggingfaceError) -> Self
fn from(source: HuggingfaceError) -> Self
Converts to this type from the input type.
Source§impl From<PreinstallError> for InstallError
impl From<PreinstallError> for InstallError
Source§fn from(source: PreinstallError) -> Self
fn from(source: PreinstallError) -> Self
Converts to this type from the input type.
Source§impl From<PreinstallError> for UpgradeError
impl From<PreinstallError> for UpgradeError
Source§fn from(source: PreinstallError) -> Self
fn from(source: PreinstallError) -> Self
Converts to this type from the input type.
Source§impl From<VerifyChecksumError> for PreinstallError
impl From<VerifyChecksumError> for PreinstallError
Source§fn from(source: VerifyChecksumError) -> Self
fn from(source: VerifyChecksumError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PreinstallError
impl !UnwindSafe for PreinstallError
impl Freeze for PreinstallError
impl Send for PreinstallError
impl Sync for PreinstallError
impl Unpin for PreinstallError
impl UnsafeUnpin for PreinstallError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.