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§
Required Methods§
Sourcefn get_topics(&self) -> Vec<Self::Topic>
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.