pub enum FreshnessError {
Serialization(String),
InvalidContract(String),
}Expand description
Errors produced by freshness contract construction.
Variants§
Serialization(String)
Contract could not be serialised or deserialised.
InvalidContract(String)
Contract carried an invalid field (empty domain, zero max-age, etc.).
Trait Implementations§
Source§impl Debug for FreshnessError
impl Debug for FreshnessError
Source§impl Display for FreshnessError
impl Display for FreshnessError
Source§impl Error for FreshnessError
impl Error for FreshnessError
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()
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