pub struct EventError(pub Box<ErrorContext>);Expand description
Event validation or lifecycle error returned during emit paths.
Tuple Fields§
§0: Box<ErrorContext>Trait Implementations§
Source§impl Debug for EventError
impl Debug for EventError
Source§impl<'de> Deserialize<'de> for EventError
impl<'de> Deserialize<'de> for EventError
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventError, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl DiagnosticInfo for EventError
impl DiagnosticInfo for EventError
Source§fn diagnostic(&self) -> &Diagnostic
fn diagnostic(&self) -> &Diagnostic
Returns the structured diagnostic attached to this error surface.
Source§impl Display for EventError
impl Display for EventError
Source§impl Error for EventError
impl Error for EventError
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 PartialEq for EventError
impl PartialEq for EventError
Source§impl Serialize for EventError
impl Serialize for EventError
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EventError
Auto Trait Implementations§
impl Freeze for EventError
impl !RefUnwindSafe for EventError
impl Send for EventError
impl Sync for EventError
impl Unpin for EventError
impl UnsafeUnpin for EventError
impl !UnwindSafe for EventError
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