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
sourceimpl Debug for ErrorDetail
impl Debug for ErrorDetail
sourceimpl Display for ErrorDetail
impl Display for ErrorDetail
sourceimpl ErrorExt for ErrorDetail
impl ErrorExt for ErrorDetail
sourcefn is_timeout(&self) -> Option<Duration>
fn is_timeout(&self) -> Option<Duration>
Whether this error means that a timeout occured when querying a node.
sourcefn 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. Read more
sourcefn 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. Read more
Auto Trait Implementations
impl RefUnwindSafe for ErrorDetail
impl Send for ErrorDetail
impl Sync for ErrorDetail
impl Unpin for ErrorDetail
impl UnwindSafe for ErrorDetail
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more