pub trait MessageData:
'static
+ Debug
+ Any
+ Send {
// Required methods
fn as_any(&self) -> &dyn Any;
fn compare(&self, other: &dyn MessageData) -> bool;
fn clone_box(&self) -> Box<dyn MessageData>;
}
Expand description
A trait, that is used by every messages used in the user interface. It contains utility methods, that are used for downcasting and equality comparison.
Required Methods§
Sourcefn compare(&self, other: &dyn MessageData) -> bool
fn compare(&self, other: &dyn MessageData) -> bool
Compares this message data with some other.
Sourcefn clone_box(&self) -> Box<dyn MessageData>
fn clone_box(&self) -> Box<dyn MessageData>
Clones self as boxed value.