pub enum InstallError {
ProviderUnknown(InstallProviderId),
ProviderUnavailable(String),
ReferenceInvalid(String),
ReferenceNotFound(String),
AccessDenied(String),
AuthRequired(String),
InsufficientDisk {
required_bytes: i64,
available_bytes: i64,
},
ChecksumMismatch(String),
TransferFailed(String),
Local(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.
AccessDenied(String)
The platform would not show or serve what was asked, and this says why: a repo it will not show an anonymous client, a token it rejected. A fact about the account in hand, not about the network.
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.
Local(String)
Something on this machine refused: a directory that cannot be written, a file that cannot be read. Unlike a transfer failure, trying again without changing anything will not help.
Trait Implementations§
Source§impl Clone for InstallError
impl Clone for InstallError
Source§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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()