2024-06-21 22:00:38 +01:00
|
|
|
#[derive(Debug)]
|
|
|
|
enum Message {
|
2024-07-05 13:11:03 +01:00
|
|
|
Resize,
|
2024-06-21 22:00:38 +01:00
|
|
|
Move,
|
2024-07-05 13:11:03 +01:00
|
|
|
Echo,
|
2024-06-21 22:00:38 +01:00
|
|
|
ChangeColor,
|
2024-07-05 13:11:03 +01:00
|
|
|
Quit,
|
2024-06-21 22:00:38 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
fn main() {
|
2024-07-05 13:11:03 +01:00
|
|
|
println!("{:?}", Message::Resize);
|
2024-06-21 22:00:38 +01:00
|
|
|
println!("{:?}", Message::Move);
|
2024-07-05 13:11:03 +01:00
|
|
|
println!("{:?}", Message::Echo);
|
2024-06-21 22:00:38 +01:00
|
|
|
println!("{:?}", Message::ChangeColor);
|
2024-07-05 13:11:03 +01:00
|
|
|
println!("{:?}", Message::Quit);
|
2024-06-21 22:00:38 +01:00
|
|
|
}
|