Skip to main content

Event

Trait Event 

Source
pub trait Event: 'static {
    type Contract: Contract;

    const NAME: &'static str;
}
Expand description

A notification that something happened. Delivered at most once to every running board that subscribes to it, with no answer and no replay.

Required Associated Constants§

Source

const NAME: &'static str

The event’s name within its contract, such as changed.

Required Associated Types§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§

Source§

impl Event for AccessChanged

Source§

const NAME: &'static str = "access-changed"

Source§

type Contract = Github

Source§

impl Event for subspace_contracts::github::Changed

Source§

const NAME: &'static str = "changed"

Source§

type Contract = Github

Source§

impl Event for subspace_contracts::issues::Changed

Source§

const NAME: &'static str = "changed"

Source§

type Contract = Issues