Skip to main content

MessageData

Trait MessageData 

Source
pub trait MessageData:
    'static
    + Debug
    + Any {
    // Required methods
    fn as_any(&self) -> &dyn Any;
    fn compare(&self, other: &dyn MessageData) -> bool;
}

Required Methods§

Source

fn as_any(&self) -> &dyn Any

Source

fn compare(&self, other: &dyn MessageData) -> bool

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T> MessageData for T
where T: 'static + Debug + PartialEq + Any,