[][src]Enum tendermint_light_client::errors::ErrorKind

pub enum ErrorKind {
    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(HeightHeight),
    InvalidLightBlock(VerificationError),
    ChannelDisconnected,
}

Variants

Store
NoPrimary
NoWitnesses
NoWitnessLeft
ForkDetected(Vec<PeerId>)
NoInitialTrustedState
NoTrustedState(Status)
TargetLowerThanTrustedState

Fields of TargetLowerThanTrustedState

target_height: Heighttrusted_height: Height
TrustedStateOutsideTrustingPeriod

Fields of TrustedStateOutsideTrustingPeriod

trusted_state: Box<LightBlock>options: Options
BisectionFailed(HeightHeight)
InvalidLightBlock(VerificationError)
ChannelDisconnected

Implementations

impl ErrorKind[src]

pub fn context(self, source: impl Into<BoxError>) -> Context<Self>[src]

Add additional context (i.e. include a source error and capture a backtrace). You can convert the resulting Context into an Error by calling .into().

Trait Implementations

impl Clone for ErrorKind[src]

impl Debug for ErrorKind[src]

impl<'de> Deserialize<'de> for ErrorKind[src]

impl Display for ErrorKind[src]

impl Error for ErrorKind[src]

impl ErrorExt for ErrorKind[src]

fn is_timeout(&self) -> bool[src]

Whether this error means that a timeout occured when querying a node.

impl From<IoError> for ErrorKind[src]

impl From<RecvError> for ErrorKind[src]

impl<T: Debug + Send + Sync + 'static> From<SendError<T>> for ErrorKind[src]

impl PartialEq<ErrorKind> for ErrorKind[src]

impl Serialize for ErrorKind[src]

impl StructuralPartialEq for ErrorKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,