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

Add a error to the queue. Shall replace last error with a QueueOverflow error if full.

Get a error to the queue Shall return NoError if empty.

Current length of queue

Clear queue

Provided Methods

Is queue empty?

Implementors