future function
This commit is contained in:
parent
4534abc2cb
commit
8985d3bd0a
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue