[][src]Trait tendermint_light_client::errors::ErrorExt

pub trait ErrorExt {
    pub fn not_enough_trust(&self) -> bool;
pub fn has_expired(&self) -> bool;
pub fn is_timeout(&self) -> bool; }

Extension methods for ErrorKind

Required methods

pub fn not_enough_trust(&self) -> bool[src]

Whether this error means that the light block cannot be trusted w.r.t. the latest trusted state.

pub fn has_expired(&self) -> bool[src]

Whether this error means that the light block has expired, ie. it's outside of the trusting period.

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

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

Loading content...

Implementors

impl ErrorExt for ErrorKind[src]

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

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

impl ErrorExt for VerificationError[src]

Loading content...