pub trait MessageData:
'static
+ Debug
+ Any
+ Send {
// Required methods
fn as_any(&self) -> &(dyn Any + 'static);
fn compare(&self, other: &(dyn MessageData + 'static)) -> 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 + 'static)) -> bool
fn compare(&self, other: &(dyn MessageData + 'static)) -> 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.