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