Handler

Trait Handler 

Source
pub trait Handler<T> {
    // Required methods
    fn receive<E: Into<T>>(&self, error: E);
    fn has_received(&self) -> bool;
}
Expand description

Represents a trait responsible for handling diagnostics in the interpreter.

Required Methods§

Source

fn receive<E: Into<T>>(&self, error: E)

Receive an error and handles it.

Source

fn has_received(&self) -> bool

Returns whether the handler has received any error.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§