pub enum DeployError {
Storage(StorageError),
Kv(KvError),
Serde(String),
NotFound(String),
HashMismatch {
expected: String,
actual: String,
},
Incomplete(Vec<String>),
Ambiguous(String),
Conflict(String),
}Expand description
Errors from the content-addressed deploy layer (crate::deploy).
Variants§
Storage(StorageError)
A blob-storage error.
Kv(KvError)
A KV (manifest/pointer) error.
Serde(String)
(De)serialization of a manifest failed.
NotFound(String)
A referenced deployment, site, or path was not found.
HashMismatch
An uploaded blob did not hash to the key it was stored under.
Fields
Incomplete(Vec<String>)
A deployment cannot be activated because some blobs are missing.
Ambiguous(String)
A deployment-id prefix matched more than one deployment.
Conflict(String)
A host is already claimed by a different site — refusing to overwrite the
routing index would let one site hijack another’s domain. Surfaced as a
409 Conflict.
Trait Implementations§
Source§impl Debug for DeployError
impl Debug for DeployError
Source§impl Display for DeployError
impl Display for DeployError
Source§impl Error for DeployError
impl Error for DeployError
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<ConfigError> for DeployError
impl From<ConfigError> for DeployError
Source§fn from(err: ConfigError) -> Self
fn from(err: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for DeployError
impl From<Error> for DeployError
Source§impl From<KvError> for DeployError
impl From<KvError> for DeployError
Source§impl From<StorageError> for DeployError
impl From<StorageError> for DeployError
Source§fn from(source: StorageError) -> Self
fn from(source: StorageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DeployError
impl !UnwindSafe for DeployError
impl Freeze for DeployError
impl Send for DeployError
impl Sync for DeployError
impl Unpin for DeployError
impl UnsafeUnpin for DeployError
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