pub trait ErrorExt {
    // Required methods
    fn not_enough_trust(&self) -> Option<VotingPowerTally>;
    fn has_expired(&self) -> bool;
    fn is_timeout(&self) -> Option<Duration>;
}
Expand description

Extension methods for ErrorKind

Required Methods§

source

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.

source

fn has_expired(&self) -> bool

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

source

fn is_timeout(&self) -> Option<Duration>

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

Implementors§