pub enum CompareError {
ConflictingHeaders(Box<LightBlock>),
BadWitness,
Other(Error),
}
Expand description
An error that arised when comparing a header from the primary with a header from a witness
with compare_new_header_with_witness
.
Variants§
ConflictingHeaders(Box<LightBlock>)
There may have been an attack on this light client
BadWitness
The witness has either not responded, doesn’t have the header or has given us an invalid one
Other(Error)
Some other error has occurred, this is likely a benign error
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompareError
impl !RefUnwindSafe for CompareError
impl Send for CompareError
impl Sync for CompareError
impl Unpin for CompareError
impl !UnwindSafe for CompareError
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