pub enum DynamicUpdateError {
EmptyTargetId,
ChecksumMismatch {
target: String,
expected: u64,
actual: u64,
},
VersionRegression {
target: String,
current: u64,
incoming: u64,
},
InvalidJson(String),
NoHistoryToRollback(String),
}Expand description
Validation and runtime errors returned by DynamicUpdateHub operations.
Variants§
EmptyTargetId
Target component ID or page route was empty or whitespace-only.
ChecksumMismatch
Supplied checksum did not match the deterministic FNV-1a digest of the update payload.
Fields
VersionRegression
Incoming version was lower than or equal to the active version without allow_downgrade.
Fields
InvalidJson(String)
Remote JSON manifest failed deserialization.
NoHistoryToRollback(String)
Rollback requested on a component or page with no applied dynamic revision.
Trait Implementations§
Source§impl Clone for DynamicUpdateError
impl Clone for DynamicUpdateError
Source§impl Debug for DynamicUpdateError
impl Debug for DynamicUpdateError
Source§impl Display for DynamicUpdateError
Formatting implementation for DynamicUpdateError.
impl Display for DynamicUpdateError
Formatting implementation for DynamicUpdateError.
impl Eq for DynamicUpdateError
Source§impl Error for DynamicUpdateError
Standard Error marker for DynamicUpdateError.
impl Error for DynamicUpdateError
Standard Error marker for DynamicUpdateError.
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 Hash for DynamicUpdateError
impl Hash for DynamicUpdateError
Source§impl PartialEq for DynamicUpdateError
impl PartialEq for DynamicUpdateError
impl StructuralPartialEq for DynamicUpdateError
Auto Trait Implementations§
impl Forget for DynamicUpdateError
impl Freeze for DynamicUpdateError
impl Move for DynamicUpdateError
impl RefUnwindSafe for DynamicUpdateError
impl Send for DynamicUpdateError
impl Sync for DynamicUpdateError
impl Unpin for DynamicUpdateError
impl UnsafeUnpin for DynamicUpdateError
impl UnwindSafe for DynamicUpdateError
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