pub enum ApplyHeaderError {
InconsistentBlocks,
CannotConnect(CannotConnectError),
}
Expand description
The error type for LocalChain::apply_header_connected_to
.
Variants§
InconsistentBlocks
Occurs when connected_to
block conflicts with either the current block or previous block.
CannotConnect(CannotConnectError)
Occurs when the update cannot connect with the original chain.
Trait Implementations§
Source§impl Clone for ApplyHeaderError
impl Clone for ApplyHeaderError
Source§fn clone(&self) -> ApplyHeaderError
fn clone(&self) -> ApplyHeaderError
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 ApplyHeaderError
impl Debug for ApplyHeaderError
Source§impl Display for ApplyHeaderError
impl Display for ApplyHeaderError
Source§impl Error for ApplyHeaderError
impl Error for ApplyHeaderError
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 ApplyHeaderError
impl PartialEq for ApplyHeaderError
impl StructuralPartialEq for ApplyHeaderError
Auto Trait Implementations§
impl Freeze for ApplyHeaderError
impl RefUnwindSafe for ApplyHeaderError
impl Send for ApplyHeaderError
impl Sync for ApplyHeaderError
impl Unpin for ApplyHeaderError
impl UnwindSafe for ApplyHeaderError
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