Skip to main content

MsgData

Trait MsgData 

Source
pub trait MsgData {
    type Msg;

    // Required method
    fn msg(&mut self, msg: Self::Msg);
}
Expand description

A trait that is implemented on data to make it mutable by messages.

Required Associated Types§

Required Methods§

Source

fn msg(&mut self, msg: Self::Msg)

Applies message msg to self.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§