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.
bromine/src/events/error_event.rs

14 lines
403 B
Rust

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,
}