Enum ckb_verification::TimestampError
source · pub enum TimestampError {
BlockTimeTooOld {
min: u64,
actual: u64,
},
BlockTimeTooNew {
max: u64,
actual: u64,
},
}Expand description
Errors due to the fact that the block timestamp rule is not respected.
Variants§
BlockTimeTooOld
The block timestamp is older than the allowed oldest timestamp.
BlockTimeTooNew
The block timestamp is newer than the allowed newest timestamp.
Trait Implementations§
source§impl Clone for TimestampError
impl Clone for TimestampError
source§fn clone(&self) -> TimestampError
fn clone(&self) -> TimestampError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for TimestampError
impl Debug for TimestampError
source§impl Display for TimestampError
impl Display for TimestampError
source§impl Error for TimestampError
impl Error for TimestampError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<TimestampError> for Error
impl From<TimestampError> for Error
source§fn from(error: TimestampError) -> Self
fn from(error: TimestampError) -> Self
Converts to this type from the input type.
source§impl From<TimestampError> for HeaderError
impl From<TimestampError> for HeaderError
source§fn from(error: TimestampError) -> Self
fn from(error: TimestampError) -> Self
Converts to this type from the input type.
source§impl PartialEq<TimestampError> for TimestampError
impl PartialEq<TimestampError> for TimestampError
source§fn eq(&self, other: &TimestampError) -> bool
fn eq(&self, other: &TimestampError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for TimestampError
impl StructuralEq for TimestampError
impl StructuralPartialEq for TimestampError
Auto Trait Implementations§
impl RefUnwindSafe for TimestampError
impl Send for TimestampError
impl Sync for TimestampError
impl Unpin for TimestampError
impl UnwindSafe for TimestampError
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