pub enum ErrorDetail {
Show 17 variants
Io(IoSubdetail),
NoPrimary(NoPrimarySubdetail),
NoWitnesses(NoWitnessesSubdetail),
NoWitnessesLeft(NoWitnessesLeftSubdetail),
ForkDetected(ForkDetectedSubdetail),
NoInitialTrustedState(NoInitialTrustedStateSubdetail),
NoTrustedState(NoTrustedStateSubdetail),
TargetLowerThanTrustedState(TargetLowerThanTrustedStateSubdetail),
HeightTooHigh(HeightTooHighSubdetail),
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)
HeightTooHigh(HeightTooHighSubdetail)
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.
source§fn is_height_too_high(&self) -> bool
fn is_height_too_high(&self) -> bool
Whether the height of the requested light block is higher than the
latest height available on the node.
Auto Trait Implementations§
impl Freeze for ErrorDetail
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnwindSafe for ErrorDetail
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