pub struct ErrorCodeRegistry { /* private fields */ }Expand description
Comprehensive error code registry
Implementations§
Source§impl ErrorCodeRegistry
impl ErrorCodeRegistry
pub fn new() -> Self
pub fn get_code_info(&self, code: &str) -> Option<&ErrorCodeInfo>
pub fn list_codes_by_component(&self, component: &str) -> Vec<&ErrorCodeInfo>
Sourcepub fn generate_documentation(&self) -> String
pub fn generate_documentation(&self) -> String
Generate markdown documentation for all error codes
Sourcepub fn get_recovery_actions(&self, code: &str) -> Vec<String>
pub fn get_recovery_actions(&self, code: &str) -> Vec<String>
Get recovery actions for a specific error code
Sourcepub fn is_critical(&self, code: &str) -> bool
pub fn is_critical(&self, code: &str) -> bool
Check if an error code is critical
Sourcepub fn get_codes_by_severity(&self, severity: &str) -> Vec<&str>
pub fn get_codes_by_severity(&self, severity: &str) -> Vec<&str>
Get all error codes for a severity level
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorCodeRegistry
impl RefUnwindSafe for ErrorCodeRegistry
impl Send for ErrorCodeRegistry
impl Sync for ErrorCodeRegistry
impl Unpin for ErrorCodeRegistry
impl UnsafeUnpin for ErrorCodeRegistry
impl UnwindSafe for ErrorCodeRegistry
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more