Struct tendermint_rpc::error::Error [−][src]
pub struct Error(pub ErrorDetail, pub DefaultTracer);
Tuple Fields
0: ErrorDetail
1: DefaultTracer
Implementations
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) -> ErrorDetail,
pub fn web_socket(
message: String,
source: AsErrorSource<DisplayOnly<Error>, DefaultTracer>
) -> Error
pub fn out_of_range(
source: AsErrorSource<DisplayOnly<TryFromIntError>, DefaultTracer>
) -> Error
Trait Implementations
impl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
impl Error for Error where
ErrorDetail: Display,
DefaultTracer: Debug + Display,
DefaultTracer: ErrorMessageTracer,
type Source = Self
type Source = Self
The type of the error source.
type Detail = ErrorDetail
type Detail = ErrorDetail
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 Error
impl !UnwindSafe for Error
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
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