pub enum EventKindError {
EmptyEventType,
ReservedTypeField,
PayloadMustBeObject,
MissingField(String),
UnexpectedEventType {
expected: &'static str,
actual: String,
},
InvalidPayload(Error),
}Variants§
EmptyEventType
ReservedTypeField
PayloadMustBeObject
MissingField(String)
UnexpectedEventType
InvalidPayload(Error)
Trait Implementations§
Source§impl Debug for EventKindError
impl Debug for EventKindError
Source§impl Display for EventKindError
impl Display for EventKindError
Source§impl Error for EventKindError
impl Error for EventKindError
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()
Source§impl From<Error> for EventKindError
impl From<Error> for EventKindError
Source§fn from(error: Error) -> EventKindError
fn from(error: Error) -> EventKindError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for EventKindError
impl !UnwindSafe for EventKindError
impl Freeze for EventKindError
impl Send for EventKindError
impl Sync for EventKindError
impl Unpin for EventKindError
impl UnsafeUnpin for EventKindError
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