pub enum CloudHomeError {
NotFound(String),
AlreadyExists(String),
Configuration(String),
Transport(String),
CleanupFailed {
operation: Box<CloudHomeError>,
cleanup: Box<CloudHomeError>,
},
UnresolvedOutcome {
operation: Box<CloudHomeError>,
readback: Box<CloudHomeError>,
},
Io(Error),
}Expand description
Errors from raw cloud storage operations.
Variants§
NotFound(String)
AlreadyExists(String)
Configuration(String)
The cloud home is misconfigured or its credentials are missing or invalid: a bucket/folder/drive that isn’t set, credentials absent from the keyring, a provider unsupported by this build, OAuth that needs re-authorization. The user must fix the configuration; retrying the same operation cannot succeed.
Transport(String)
The cloud backend or the network to it failed: a request error, a non-2xx status, a malformed response. Transient — a later attempt may succeed.
CleanupFailed
UnresolvedOutcome
Io(Error)
Implementations§
Source§impl CloudHomeError
impl CloudHomeError
Sourcepub fn is_retryable(&self) -> bool
pub fn is_retryable(&self) -> bool
Whether the failure is transient — worth retrying the operation unchanged —
or a fault that will not resolve until the missing object appears or the user
fixes the configuration. A transport or local-I/O failure is transient
(true); a missing object, a misconfiguration, or absent/invalid credentials
are not (false).