ErrorCommands

Trait ErrorCommands 

Source
pub trait ErrorCommands {
    // Required method
    fn error_queue(&mut self) -> &mut impl ErrorQueue;

    // Provided methods
    fn system_error_count(&mut self) -> Result<usize, Error> { ... }
    fn system_error_next(&mut self) -> Result<(i16, &'static str), Error> { ... }
}
Expand description

Error Commands

The ErrorCommands trait implements the standard SCPI commands used for error management. The only requirement to implement this trait is to provide an ErrorQueue via the ErrorCommands::error_queue() method. This crate contains an implementation of an error queue based on a statically allocated data structure: crate::StaticErrorQueue.

§Implemented commands

  • SYSTem:ERRor:[NEXT]?
  • SYSTem:ERRor:[COUNt]?

Required Methods§

Source

fn error_queue(&mut self) -> &mut impl ErrorQueue

Provided Methods§

Source

fn system_error_count(&mut self) -> Result<usize, Error>

Source

fn system_error_next(&mut self) -> Result<(i16, &'static str), 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§