Struct calypso_diagnostic::report::GlobalReportingCtxt
source · pub struct GlobalReportingCtxt {
errors: Vec<EnsembleDiagnostic>,
nonfatals: Vec<EnsembleDiagnostic>,
fatal: Option<EnsembleDiagnostic>,
}
Expand description
The global reporting context for diagnostics.
Fields§
§errors: Vec<EnsembleDiagnostic>
§nonfatals: Vec<EnsembleDiagnostic>
§fatal: Option<EnsembleDiagnostic>
Implementations§
source§impl GlobalReportingCtxt
impl GlobalReportingCtxt
sourcepub fn clear_syncd(&mut self)
pub fn clear_syncd(&mut self)
Clear the list of synchronized errors.
sourcepub fn clear_nonfatals(&mut self)
pub fn clear_nonfatals(&mut self)
Clear the list of nonfatals.
sourcepub fn clear_fatal(&mut self)
pub fn clear_fatal(&mut self)
Clear the current fatal error.
sourcepub fn report_syncd(&mut self, value: EnsembleDiagnostic)
pub fn report_syncd(&mut self, value: EnsembleDiagnostic)
Report an error that was synchronizable.
sourcepub fn report_non_fatal(&mut self, value: EnsembleDiagnostic)
pub fn report_non_fatal(&mut self, value: EnsembleDiagnostic)
Report a non-fatal error.
sourcepub fn report_fatal(&mut self, value: EnsembleDiagnostic)
pub fn report_fatal(&mut self, value: EnsembleDiagnostic)
Report a fatal error. If there is already a fatal error reported, it will not be replaced.
sourcepub fn nonfatals(&self) -> &[EnsembleDiagnostic]
pub fn nonfatals(&self) -> &[EnsembleDiagnostic]
Get the list of nonfatal errors.
sourcepub fn fatal(&self) -> Option<&EnsembleDiagnostic>
pub fn fatal(&self) -> Option<&EnsembleDiagnostic>
Get the current fatal error, if any.
sourcepub fn errors(&self) -> &[EnsembleDiagnostic]
pub fn errors(&self) -> &[EnsembleDiagnostic]
Get the list of synchronizable errors.