future function

This commit is contained in:
Nickiel12 2021-12-17 20:45:32 -08:00
parent 4534abc2cb
commit 8985d3bd0a

View file

@ -8,6 +8,7 @@ pub enum StateMessage {
pub trait MessageHandler {
fn handle_update(&mut self, update: StateUpdate) -> ();
fn create_update_from_string(update_json: String) -> StateUpdate;
fn get_states(&self) -> StreamState;
}
@ -18,4 +19,8 @@ impl MessageHandler for StreamState {
fn get_states(&self) -> StreamState{
self.clone()
}
fn create_update_from_string(update_json: String) -> StateUpdate {
StateUpdate::ChangeSceneOnChangeSlideHotkey(false)
}
}