From 3decc966c9755932e7cac1e99d077f60431fd10e Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Mon, 20 Dec 2021 15:56:46 -0800 Subject: [PATCH] added enum for change-slide handling --- src/modules/stream_states/enums.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/modules/stream_states/enums.rs b/src/modules/stream_states/enums.rs index 84481dd..1c83641 100644 --- a/src/modules/stream_states/enums.rs +++ b/src/modules/stream_states/enums.rs @@ -45,3 +45,18 @@ impl Scenes { } } +#[derive(PartialEq, Debug, Clone, Copy)] +pub enum SlideChange { + Next, + Previous, +} + +impl SlideChange { + pub fn to_string(&self) -> String { + match self { + SlideChange::Next => {String::from_str("Next_Slide").unwrap()}, + SlideChange::Previous => {String::from_str("Prev_Slide").unwrap()}, + } + } +} +