pub enum InstallError {
ProviderUnknown(InstallProviderId),
ProviderUnavailable(String),
ReferenceInvalid(String),
ReferenceNotFound(String),
AuthRequired(String),
InsufficientDisk {
required_bytes: i64,
available_bytes: i64,
},
ChecksumMismatch(String),
TransferFailed(String),
}Expand description
Why a model install could not proceed or complete.
Variants§
ProviderUnknown(InstallProviderId)
No provider is registered under this id.
The provider exists but can’t be used (with a reason).
ReferenceInvalid(String)
The reference isn’t one this provider understands.
ReferenceNotFound(String)
The reference was not found on the platform.
AuthRequired(String)
The model is gated: either no token was supplied, or the token that was supplied has not been granted access to this repo.
InsufficientDisk
Not enough free disk space to complete the download.
ChecksumMismatch(String)
A downloaded file failed checksum verification.
TransferFailed(String)
The transfer failed with a message.
Trait Implementations§
Source§impl Clone for InstallError
impl Clone for InstallError
Source§fn clone(&self) -> InstallError
fn clone(&self) -> InstallError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InstallError
impl Debug for InstallError
Source§impl Display for InstallError
impl Display for InstallError
impl Eq for InstallError
Source§impl Error for InstallError
impl Error for InstallError
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 PartialEq for InstallError
impl PartialEq for InstallError
impl StructuralPartialEq for InstallError
Auto Trait Implementations§
impl Freeze for InstallError
impl RefUnwindSafe for InstallError
impl Send for InstallError
impl Sync for InstallError
impl Unpin for InstallError
impl UnsafeUnpin for InstallError
impl UnwindSafe for InstallError
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