1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
use Any;
use fmt;
/// A dynamically typed message to be sent to a [Layout][0] for processing.
///
/// See the [IntoMessage] trait for how to mark a type as being usable as a [Message].
///
/// [0]: crate::core::layout::Layout
;
/// Marker trait for a type that can be sent as a [Message].
///
/// The [impl_message][crate::impl_message] macro can be used to easily implement this trait and mark
/// a type as being usable as a layout message:
/// ```
/// use penrose::impl_message;
///
/// struct MyMessage;
/// impl_message!(MyMessage);
/// ```