Struct reproto_core::Reporter
[−]
[src]
pub struct Reporter<'a> { /* fields omitted */ }
A reporter that processes the given error for the context.
Converting the reporter into an ErrorKind
causes it to accumulate the errors to the Context
.
Methods
impl<'a> Reporter<'a>
[src]
pub fn err<P: Into<Span>, E: Display>(&mut self, span: P, error: E)
[src]
pub fn info<P: Into<Span>, I: Display>(&mut self, span: P, info: I)
[src]
pub fn close(self) -> Option<Error>
[src]
Close this reporter and return an error if it has errors.
This will cause the reporter to be dropped, which will report all sub-items to the parent context.