pub enum ErrorDetail {
Show 16 variants
Io(IoSubdetail),
NoPrimary(NoPrimarySubdetail),
NoWitnesses(NoWitnessesSubdetail),
NoWitnessesLeft(NoWitnessesLeftSubdetail),
ForkDetected(ForkDetectedSubdetail),
NoInitialTrustedState(NoInitialTrustedStateSubdetail),
NoTrustedState(NoTrustedStateSubdetail),
TargetLowerThanTrustedState(TargetLowerThanTrustedStateSubdetail),
TrustedStateOutsideTrustingPeriod(TrustedStateOutsideTrustingPeriodSubdetail),
BisectionFailed(BisectionFailedSubdetail),
InvalidLightBlock(InvalidLightBlockSubdetail),
InvalidAdjacentHeaders(InvalidAdjacentHeadersSubdetail),
MissingLastBlockId(MissingLastBlockIdSubdetail),
ChannelDisconnected(ChannelDisconnectedSubdetail),
Sled(SledSubdetail),
SerdeCbor(SerdeCborSubdetail),
}Variants§
Io(IoSubdetail)
NoPrimary(NoPrimarySubdetail)
NoWitnesses(NoWitnessesSubdetail)
NoWitnessesLeft(NoWitnessesLeftSubdetail)
ForkDetected(ForkDetectedSubdetail)
NoInitialTrustedState(NoInitialTrustedStateSubdetail)
NoTrustedState(NoTrustedStateSubdetail)
TargetLowerThanTrustedState(TargetLowerThanTrustedStateSubdetail)
TrustedStateOutsideTrustingPeriod(TrustedStateOutsideTrustingPeriodSubdetail)
BisectionFailed(BisectionFailedSubdetail)
InvalidLightBlock(InvalidLightBlockSubdetail)
InvalidAdjacentHeaders(InvalidAdjacentHeadersSubdetail)
MissingLastBlockId(MissingLastBlockIdSubdetail)
ChannelDisconnected(ChannelDisconnectedSubdetail)
Sled(SledSubdetail)
SerdeCbor(SerdeCborSubdetail)
Trait Implementations§
source§impl Debug for ErrorDetail
impl Debug for ErrorDetail
source§impl Display for ErrorDetail
impl Display for ErrorDetail
source§impl ErrorExt for ErrorDetail
impl ErrorExt for ErrorDetail
source§fn is_timeout(&self) -> Option<Duration>
fn is_timeout(&self) -> Option<Duration>
Whether this error means that a timeout occurred when querying a node.
source§fn not_enough_trust(&self) -> Option<VotingPowerTally>
fn not_enough_trust(&self) -> Option<VotingPowerTally>
Whether this error means that the light block
cannot be trusted w.r.t. the latest trusted state.
source§fn has_expired(&self) -> bool
fn has_expired(&self) -> bool
Whether this error means that the light block has expired,
ie. it’s outside of the trusting period.