Struct tendermint_light_client::components::io::IoError
source ·
[−]pub struct IoError(pub IoErrorDetail, pub DefaultTracer);Tuple Fields
0: IoErrorDetail1: DefaultTracerImplementations
pub fn add_trace<E: Display>(self, message: &E) -> Self where
DefaultTracer: ErrorMessageTracer,
pub fn trace_from<E, Cont>(source: E::Source, cont: Cont) -> Self where
E: ErrorSource<DefaultTracer>,
DefaultTracer: ErrorMessageTracer,
Cont: FnOnce(E::Detail) -> IoErrorDetail,
pub fn timeout(
duration: Duration,
source: AsErrorSource<DisplayOnly<Elapsed>, DefaultTracer>
) -> IoError
Trait Implementations
impl Error for IoError where
IoErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for IoError where
IoErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
type Source = Self
type Source = Self
The type of the error source.
type Detail = IoErrorDetail
type Detail = IoErrorDetail
The type of the error detail that can be extracted from the error source
Extracts the error details out from the error source, together with an optional error trace. Read more
Auto Trait Implementations
impl !RefUnwindSafe for IoError
impl !UnwindSafe for IoError
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
