Enum shrev::EventError
[−]
[src]
pub enum EventError<E: Debug + Clone + PartialEq> { TooLargeWrite, LostData(Vec<E>, usize), InvalidReader, InvalidEventType, }
Possible errors returned by the EventHandler
Variants
TooLargeWrite
If a writer tries to write more data than the max size of the ringbuffer, in a single call
LostData(Vec<E>, usize)
If a reader is more than the entire ringbuffer behind in reading, this will be returned. Contains the data that could be salvaged
InvalidReader
If attempting to use a reader for a different data type than the storage contains.
InvalidEventType
If attempting to read/write events or register a reader for an event type that has not been registered.
Trait Implementations
impl<E: Debug + Debug + Clone + PartialEq> Debug for EventError<E>
[src]
impl<E: Clone + Debug + Clone + PartialEq> Clone for EventError<E>
[src]
fn clone(&self) -> EventError<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E: PartialEq + Debug + Clone + PartialEq> PartialEq for EventError<E>
[src]
fn eq(&self, __arg_0: &EventError<E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EventError<E>) -> bool
[src]
This method tests for !=
.