Trait Event

Source
pub trait Event:
    Debug
    + for<'de> Deserialize<'de>
    + Serialize
    + Send
    + Sync
    + Sized {
    // Required method
    fn event_type(&self) -> String;
}

Required Methods§

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.

Implementations on Foreign Types§

Source§

impl Event for ()

Implementors§