pub struct ErrorEventData {
pub code: u16,
pub message: String,
}Expand description
Data returned on error event. The error event has a default handler that just logs that an error occurred. For a custom handler, register a handler on the ERROR_EVENT_NAME event.
Fields§
§code: u16§message: StringTrait Implementations§
Source§impl Clone for ErrorEventData
impl Clone for ErrorEventData
Source§fn clone(&self) -> ErrorEventData
fn clone(&self) -> ErrorEventData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ErrorEventData
impl Debug for ErrorEventData
Source§impl<'de> Deserialize<'de> for ErrorEventData
impl<'de> Deserialize<'de> for ErrorEventData
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ErrorEventData
impl Display for ErrorEventData
Source§impl Error for ErrorEventData
impl Error for ErrorEventData
1.30.0 · 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<ErrorEventData> for Error
impl From<ErrorEventData> for Error
Source§fn from(source: ErrorEventData) -> Self
fn from(source: ErrorEventData) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ErrorEventData
impl RefUnwindSafe for ErrorEventData
impl Send for ErrorEventData
impl Sync for ErrorEventData
impl Unpin for ErrorEventData
impl UnwindSafe for ErrorEventData
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