pub struct DiagnosticsRegistry(/* private fields */);Implementations§
Source§impl DiagnosticsRegistry
impl DiagnosticsRegistry
pub fn with_configuration(self, config: DiagnosticsConfiguration) -> Self
Trait Implementations§
Source§impl Default for DiagnosticsRegistry
impl Default for DiagnosticsRegistry
Source§impl DiagnosticAssessor for DiagnosticsRegistry
impl DiagnosticAssessor for DiagnosticsRegistry
Source§fn assess(&self, d: &Diagnostic) -> Severity
fn assess(&self, d: &Diagnostic) -> Severity
Assesses the diagnostic based on the current registered map. If no entry is found, the default diagnostic is returned
Source§fn explain(&self, error: &str) -> String
fn explain(&self, error: &str) -> String
Explains the given error based on the diagnostician information
Source§fn get_diagnostic_configuration(&self) -> String
fn get_diagnostic_configuration(&self) -> String
Returns a serialized version of the diagnostics configuration this diagnostician will use
to assess errors
Source§impl From<&DiagnosticsRegistry> for DiagnosticsConfiguration
impl From<&DiagnosticsRegistry> for DiagnosticsConfiguration
Source§fn from(registry: &DiagnosticsRegistry) -> Self
fn from(registry: &DiagnosticsRegistry) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DiagnosticsRegistry
impl RefUnwindSafe for DiagnosticsRegistry
impl Send for DiagnosticsRegistry
impl Sync for DiagnosticsRegistry
impl Unpin for DiagnosticsRegistry
impl UnsafeUnpin for DiagnosticsRegistry
impl UnwindSafe for DiagnosticsRegistry
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