pub enum DeployError {
InvalidRevision {
reason: &'static str,
},
DuplicatePin {
surface: SurfaceKey,
},
UnaddressableContent(String),
AddressMismatch {
declared: RevisionId,
derived: RevisionId,
},
InvalidFraction {
fraction: f64,
},
InvalidSecretName {
name: String,
reason: &'static str,
},
}Expand description
The deployment plane’s typed refusals. A refused declaration, move,
or resolution changes nothing — the crate::learn::LearnError
discipline: refused operations are contract outcomes surfaced to the
caller, never silent no-ops.
Variants§
InvalidRevision
A revision declaration outside the construction rules.
DuplicatePin
A pin set naming one surface twice — a set, not a bag.
Fields
surface: SurfaceKeyThe doubly pinned surface.
UnaddressableContent(String)
A revision’s content could not be serialized for addressing —
unreachable for well-formed content, surfaced rather than
panicked (the UndiffableContent precedent).
AddressMismatch
A stored revision fails its own content address.
Fields
declared: RevisionIdThe id the record carried.
derived: RevisionIdThe id its content derives.
InvalidFraction
A canary fraction outside (0, 1].
InvalidSecretName
A secret name outside the naming rules (see
validate_secret_name).
Trait Implementations§
Source§impl Clone for DeployError
impl Clone for DeployError
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
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()