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§
Required Associated Types§
Sourcetype Output: DeserializeOwned
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.