Skip to main content

Event

Trait Event 

Source
pub trait Event {
    // Required methods
    fn topics(&self, env: &Env) -> Vec<Val>;
    fn data(&self, env: &Env) -> Val;

    // Provided method
    fn publish(&self, env: &Env) { ... }
}

Required Methods§

Source

fn topics(&self, env: &Env) -> Vec<Val>

Source

fn data(&self, env: &Env) -> Val

Provided Methods§

Source

fn publish(&self, env: &Env)

Implementors§