From 9a2955d4daa6b6db4efffca5ebd7312e53ba1723 Mon Sep 17 00:00:00 2001 From: Anthony Ramine Date: Thu, 24 Mar 2016 15:26:40 +0100 Subject: [PATCH] Implement a dummy sources message in the thread actor --- components/devtools/actors/thread.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/components/devtools/actors/thread.rs b/components/devtools/actors/thread.rs index d5037682baf..102f428bc8b 100644 --- a/components/devtools/actors/thread.rs +++ b/components/devtools/actors/thread.rs @@ -39,6 +39,15 @@ struct ReconfigureReply { from: String } +#[derive(Serialize)] +struct SourcesReply { + from: String, + sources: Vec, +} + +#[derive(Serialize)] +enum Source {} + pub struct ThreadActor { name: String, } @@ -88,6 +97,15 @@ impl Actor for ThreadActor { ActorMessageStatus::Processed } + "sources" => { + let msg = SourcesReply { + from: self.name(), + sources: vec![], + }; + stream.write_json_packet(&msg); + ActorMessageStatus::Processed + } + _ => ActorMessageStatus::Ignored, }) }