pub struct IncompatibleHeightError { /* private fields */ }Expand description
Tried to satisfy a lock-by-time lock using a height value.
Implementations§
Source§impl IncompatibleHeightError
impl IncompatibleHeightError
Sourcepub fn lock(&self) -> MedianTimePast
pub fn lock(&self) -> MedianTimePast
Returns the value of the lock-by-time lock.
Sourcepub fn incompatible(&self) -> Height
pub fn incompatible(&self) -> Height
Returns the height that was erroneously used to try and satisfy a lock-by-time lock.
Trait Implementations§
Source§impl Clone for IncompatibleHeightError
impl Clone for IncompatibleHeightError
Source§fn clone(&self) -> IncompatibleHeightError
fn clone(&self) -> IncompatibleHeightError
Returns a duplicate 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 IncompatibleHeightError
impl Debug for IncompatibleHeightError
Source§impl Display for IncompatibleHeightError
impl Display for IncompatibleHeightError
Source§impl Error for IncompatibleHeightError
Available on crate feature std only.
impl Error for IncompatibleHeightError
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 IncompatibleHeightError
impl PartialEq for IncompatibleHeightError
impl Eq for IncompatibleHeightError
impl StructuralPartialEq for IncompatibleHeightError
Auto Trait Implementations§
impl Freeze for IncompatibleHeightError
impl RefUnwindSafe for IncompatibleHeightError
impl Send for IncompatibleHeightError
impl Sync for IncompatibleHeightError
impl Unpin for IncompatibleHeightError
impl UnsafeUnpin for IncompatibleHeightError
impl UnwindSafe for IncompatibleHeightError
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