raui_core::messenger

Trait MessageData

source
pub trait MessageData:
    Debug
    + Send
    + Sync {
    // Required methods
    fn clone_message(&self) -> Box<dyn MessageData>;
    fn as_any(&self) -> &dyn Any;
}

Required Methods§

source

fn clone_message(&self) -> Box<dyn MessageData>

source

fn as_any(&self) -> &dyn Any

Trait Implementations§

source§

impl Clone for Box<dyn MessageData>

source§

fn clone(&self) -> Self

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Implementations on Foreign Types§

source§

impl MessageData for bool
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for f32
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for f64
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for i8
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for i16
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for i32
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for i64
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for i128
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for u8
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for u16
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for u32
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for u64
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for u128
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for ()
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

source§

impl MessageData for String
where Self: Clone,

source§

fn clone_message(&self) -> Box<dyn MessageData>

source§

fn as_any(&self) -> &dyn Any

Implementors§