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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
