pub enum EventDecodeError<StoreError> {
UnknownKind {
kind: String,
expected: &'static [&'static str],
},
Store(StoreError),
}Expand description
Error returned when deserialising a stored event fails.
Variants§
UnknownKind
The event kind was not recognised by this event enum.
Fields
Store(StoreError)
The store failed to deserialise the event data.
Trait Implementations§
Source§impl<StoreError: Debug> Debug for EventDecodeError<StoreError>
impl<StoreError: Debug> Debug for EventDecodeError<StoreError>
Source§impl<StoreError> Display for EventDecodeError<StoreError>where
StoreError: Display,
impl<StoreError> Display for EventDecodeError<StoreError>where
StoreError: Display,
Source§impl<StoreError> Error for EventDecodeError<StoreError>
impl<StoreError> Error for EventDecodeError<StoreError>
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<StoreError> Freeze for EventDecodeError<StoreError>where
StoreError: Freeze,
impl<StoreError> RefUnwindSafe for EventDecodeError<StoreError>where
StoreError: RefUnwindSafe,
impl<StoreError> Send for EventDecodeError<StoreError>where
StoreError: Send,
impl<StoreError> Sync for EventDecodeError<StoreError>where
StoreError: Sync,
impl<StoreError> Unpin for EventDecodeError<StoreError>where
StoreError: Unpin,
impl<StoreError> UnwindSafe for EventDecodeError<StoreError>where
StoreError: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more