1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/// An action to send to the thread handling updates to the view.
#[derive(Debug, Copy, Clone)]
#[allow(clippy::exhaustive_enums)]
pub enum ViewAction {
	/// Stop processing actions.
	Stop,
	/// Force a refresh of the view.
	Refresh,
	/// Render the latest `ViewData`.
	Render,
	/// Start processing actions.
	Start,
	/// End the thread and the processing of actions.
	End,
}