pub enum HeightError {
HeightConversion {
height: String,
error: ParseIntError,
},
ZeroHeight,
InvalidFormat {
raw_height: String,
},
}
Expand description
Encodes all errors related to chain heights
Variants§
HeightConversion
cannot convert into a Height
type from string {height}
ZeroHeight
attempted to parse an invalid zero height
InvalidFormat
the height({raw_height}
) is not valid format, this format must be used: [revision_number]-[revision_height]
Trait Implementations§
source§impl Debug for HeightError
impl Debug for HeightError
source§impl Display for HeightError
impl Display for HeightError
source§impl Error for HeightError
impl Error for HeightError
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 PartialEq for HeightError
impl PartialEq for HeightError
source§fn eq(&self, other: &HeightError) -> bool
fn eq(&self, other: &HeightError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for HeightError
impl StructuralPartialEq for HeightError
Auto Trait Implementations§
impl Freeze for HeightError
impl RefUnwindSafe for HeightError
impl Send for HeightError
impl Sync for HeightError
impl Unpin for HeightError
impl UnwindSafe for HeightError
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