Skip to main content

EventRoute

Trait EventRoute 

Source
pub trait EventRoute {
    type Output: DeserializeOwned;

    const EVENT: &'static str;
}
Expand description

Associates an application event name with its deserialized payload type.

Required Associated Constants§

Source

const EVENT: &'static str

Event name to match.

Required Associated Types§

Source

type Output: DeserializeOwned

Payload type produced for a matching event.

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§