Enum shrev::EventError [] [src]

pub enum EventError<'a, T: 'a> {
    TooLargeWrite,
    LostData(StorageIterator<'a, T>, usize),
    InvalidReader,
}

Ringbuffer errors

Variants

If a writer tries to write more data than the max size of the ringbuffer, in a single call

If a reader is more than the entire ringbuffer behind in reading, this will be returned. Contains the data that could be salvaged, and the amount of data that was lost.

If attempting to use a reader for a different data type than the storage contains.

Trait Implementations

impl<'a, T: 'a> Debug for RBError<'a, T>
[src]

[src]

Formats the value using the given formatter.