mirror of https://github.com/Trivernis/bromine.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
403 B
Rust
14 lines
403 B
Rust
3 years ago
|
use serde::{Deserialize, Serialize};
|
||
|
|
||
|
pub static ERROR_EVENT_NAME: &str = "error";
|
||
|
|
||
|
/// 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.
|
||
|
#[derive(Clone, Deserialize, Serialize, Debug)]
|
||
|
pub struct ErrorEventData {
|
||
|
pub code: u16,
|
||
|
pub message: String,
|
||
|
}
|