Skip to main content

Event

Trait Event 

Source
pub trait Event:
    Serialize
    + DeserializeOwned
    + Send
    + Sync
    + 'static {
    const NAME: &'static str;
}
Expand description

An event an actor can broadcast to connected clients. Payloads must be JSON-compatible, like crate::action::Action arguments.

Required Associated Constants§

Source

const NAME: &'static str

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§