Enum tendermint_light_client::errors::ErrorKind [−][src]
pub enum ErrorKind {
Show variants
Io(IoError),
Store,
NoPrimary,
NoWitnesses,
NoWitnessLeft,
ForkDetected(Vec<PeerId>),
NoInitialTrustedState,
NoTrustedState(Status),
TargetLowerThanTrustedState {
target_height: Height,
trusted_height: Height,
},
TrustedStateOutsideTrustingPeriod {
trusted_state: Box<LightBlock>,
options: Options,
},
BisectionFailed(Height, Height),
InvalidLightBlock(VerificationError),
InvalidAdjacentHeaders {
h1: Hash,
h2: Hash,
},
MissingLastBlockId(Height),
ChannelDisconnected,
}Expand description
The various error kinds raised by this library
Variants
Io(IoError)I/O error
Store error
No primary
No witnesses
No witness left
A fork has been detected between some peers
No initial trusted state
NoTrustedState(Status)No trusted state
Target height for the light client lower than latest trusted state height
Show fields
The trusted state is outside of the trusting period
Show fields
Fields of TrustedStateOutsideTrustingPeriod
Bisection failed when reached trusted state
InvalidLightBlock(VerificationError)Verification failed for a light block
Hash mismatch between two adjacent headers
MissingLastBlockId(Height)Missing last_block_id field for header at given height
Internal channel disconnected
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for ErrorKindimpl UnwindSafe for ErrorKindBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = TShould always be Self
pub fn vzip(self) -> V