pub enum FreshnessError {
MissingTimestamp,
Stale {
age_seconds: i64,
max_age_seconds: i64,
},
}Expand description
Errors raised by freshness checks.
Variants§
MissingTimestamp
The active bundle has no parseable archive provenance timestamp.
Stale
The bundle is older than max_age relative to now. Carries the
observed age in seconds.
Trait Implementations§
Source§impl Clone for FreshnessError
impl Clone for FreshnessError
Source§impl Debug for FreshnessError
impl Debug for FreshnessError
Source§impl Display for FreshnessError
impl Display for FreshnessError
impl Eq for FreshnessError
Source§impl Error for FreshnessError
Available on crate feature std only.
impl Error for FreshnessError
Available on crate feature
std only.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 PartialEq for FreshnessError
impl PartialEq for FreshnessError
impl StructuralPartialEq for FreshnessError
Auto Trait Implementations§
impl Freeze for FreshnessError
impl RefUnwindSafe for FreshnessError
impl Send for FreshnessError
impl Sync for FreshnessError
impl Unpin for FreshnessError
impl UnsafeUnpin for FreshnessError
impl UnwindSafe for FreshnessError
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