pub trait Device {
// Required method
fn handle_error(&mut self, err: Error);
}
Expand description
A basic device capable of executing commands and not much else
Required Methods§
sourcefn handle_error(&mut self, err: Error)
fn handle_error(&mut self, err: Error)
Called when the parser encounters a syntax error or a command handler returns an error.