pub trait Mailbox {
// Required methods
fn enqueue(&mut self, msg: Message);
fn messages(&mut self) -> Messages;
}
Expand description
This trait represents the mailbox of a device. It is used to store the messages received from the neighbors