Enum shrev::EventError
[−]
[src]
pub enum EventError<'a, T: 'a> { TooLargeWrite, LostData(StorageIterator<'a, T>, usize), InvalidReader, }
Ringbuffer errors
Variants
TooLargeWrite
If a writer tries to write more data than the max size of the ringbuffer, in a single call
LostData(StorageIterator<'a, T>, usize)
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.
InvalidReader
If attempting to use a reader for a different data type than the storage contains.