pub struct ErrorSpec {
pub code: u16,
pub class: ErrorClass,
pub retryable: bool,
pub fatal: bool,
pub name: &'static str,
}Expand description
Compile-time descriptor: code plus its retryable / fatal semantics.
Used both as a documentation registry and to populate runtime
ErrorObject values.
Fields§
§code: u16Numeric code (see codes).
class: ErrorClassClass.
retryable: boolMAY be retried by the client.
fatal: boolFatal — the node moves to FAILED.
name: &'static strStable symbolic name for logs.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorSpec
impl RefUnwindSafe for ErrorSpec
impl Send for ErrorSpec
impl Sync for ErrorSpec
impl Unpin for ErrorSpec
impl UnsafeUnpin for ErrorSpec
impl UnwindSafe for ErrorSpec
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more