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

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

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

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]

[src]

Formats the value using the given formatter.

impl<E: Clone + Debug + Clone + PartialEq> Clone for EventError<E>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<E: PartialEq + Debug + Clone + PartialEq> PartialEq for EventError<E>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<E: Eq + Debug + Clone + PartialEq> Eq for EventError<E>
[src]