[][src]Macro xaynet_server::event

macro_rules! event {
    ($title: expr) => { ... };
    ($title: expr, $description: expr) => { ... };
    ($title: expr, $description: expr, $tags: expr) => { ... };
}

Records an event.

Example

// An event with just a title:
event!("Error");

// An event with a title and a description:
event!("Error", "something went wrong");

// An event with a title, a description and tags:
event!(
    "Error",
    "something went wrong",
    ["phase error", "coordinator"]
);