Event

Trait Event 

Source
pub trait Event:
    Clone
    + Send
    + Sync
    + Eq
    + PartialEq
    + DeserializeOwned
    + Serialize {
    type Topic;

    // Required method
    fn get_topics(&self) -> Vec<Self::Topic>;
}
Expand description

Event trait

Required Associated Types§

Source

type Topic

Generic Topic

It should be serializable/deserializable to be stored in the database layer and it should also be sorted in a BTree for in-memory matching

Required Methods§

Source

fn get_topics(&self) -> Vec<Self::Topic>

To topics

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§