Trait tendermint_light_client::errors::ErrorExt [−][src]
pub trait ErrorExt {
fn not_enough_trust(&self) -> bool;
fn has_expired(&self) -> bool;
fn is_timeout(&self) -> bool;
}Expand description
Extension methods for ErrorKind
Required methods
fn not_enough_trust(&self) -> bool
fn not_enough_trust(&self) -> boolWhether this error means that the light block cannot be trusted w.r.t. the latest trusted state.
fn has_expired(&self) -> bool
fn has_expired(&self) -> boolWhether this error means that the light block has expired, ie. it’s outside of the trusting period.
fn is_timeout(&self) -> bool
fn is_timeout(&self) -> boolWhether this error means that a timeout occured when querying a node.