Skip to main content

Event

Trait Event 

Source
pub trait Event {
    // Required methods
    fn id(&self) -> i64;
    fn kind(&self) -> &str;
    fn param(&self, key: &str) -> Option<&Value>;
}
Expand description

Something that happened, as the engine sees it.

Required Methods§

Source

fn id(&self) -> i64

Source

fn kind(&self) -> &str

Source

fn param(&self, key: &str) -> Option<&Value>

One of the event’s parameters (the engine reads only rule, on SCHEDULE events).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§