Trait scpi::error::ErrorQueue
source · [−]pub trait ErrorQueue {
fn push_back_error(&mut self, err: Error);
fn pop_front_error(&mut self) -> Error;
fn len(&self) -> usize;
fn clear(&mut self);
fn is_empty(&self) -> bool { ... }
}
Expand description
Generic error queue trait
Required Methods
fn push_back_error(&mut self, err: Error)
fn push_back_error(&mut self, err: Error)
Add a error to the queue. Shall replace last error with a QueueOverflow error if full.
fn pop_front_error(&mut self) -> Error
fn pop_front_error(&mut self) -> Error
Get a error to the queue Shall return NoError if empty.