Add toast example
This commit is contained in:
parent
3ab6797255
commit
d470467718
3 changed files with 689 additions and 0 deletions
|
|
@ -25,6 +25,11 @@ impl<'a, Message> Shell<'a, Message> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns true if the [`Shell`] contains no published messages
|
||||
pub fn is_empty(&self) -> bool {
|
||||
self.messages.is_empty()
|
||||
}
|
||||
|
||||
/// Publish the given `Message` for an application to process it.
|
||||
pub fn publish(&mut self, message: Message) {
|
||||
self.messages.push(message);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue