pub trait ErrorCode: Error {
// Required method
fn error_code(&self) -> Cow<'static, str>;
}Expand description
An Error extension trait that allows simplified error codes to be submitted in telemetry.
Required Methods§
Sourcefn error_code(&self) -> Cow<'static, str>
fn error_code(&self) -> Cow<'static, str>
Return the error code for the given error.
Implementations on Foreign Types§
Source§impl ErrorCode for StoreError
Available on crate feature stateful only.
impl ErrorCode for StoreError
Available on crate feature
stateful only.fn error_code(&self) -> Cow<'static, str>
Implementors§
impl ErrorCode for BehaviorError
Available on crate feature
stateful only.impl ErrorCode for NimbusError
Available on crate feature
stateful only.