pub enum EventDecodeError<CodecError> {
UnknownKind {
kind: String,
expected: &'static [&'static str],
},
Codec(CodecError),
}Expand description
Error returned when deserializing a stored event fails.
Variants§
UnknownKind
The event kind was not recognized by this event enum.
Fields
Codec(CodecError)
The codec failed to deserialize the event data.
Trait Implementations§
Source§impl<CodecError: Debug> Debug for EventDecodeError<CodecError>
impl<CodecError: Debug> Debug for EventDecodeError<CodecError>
Source§impl<CodecError> Display for EventDecodeError<CodecError>where
CodecError: Display,
impl<CodecError> Display for EventDecodeError<CodecError>where
CodecError: Display,
Source§impl<CodecError> Error for EventDecodeError<CodecError>
impl<CodecError> Error for EventDecodeError<CodecError>
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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl<CodecError> Freeze for EventDecodeError<CodecError>where
CodecError: Freeze,
impl<CodecError> RefUnwindSafe for EventDecodeError<CodecError>where
CodecError: RefUnwindSafe,
impl<CodecError> Send for EventDecodeError<CodecError>where
CodecError: Send,
impl<CodecError> Sync for EventDecodeError<CodecError>where
CodecError: Sync,
impl<CodecError> Unpin for EventDecodeError<CodecError>where
CodecError: Unpin,
impl<CodecError> UnwindSafe for EventDecodeError<CodecError>where
CodecError: UnwindSafe,
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more