Add a dummy reconfigure reply in the thread actor

This commit is contained in:
Anthony Ramine 2016-03-24 01:21:08 +01:00
parent dbfa4f06b7
commit 04e085a4e5
2 changed files with 25 additions and 0 deletions

View file

@ -30,6 +30,11 @@ struct ThreadResumedReply {
__type__: String,
}
#[derive(RustcEncodable)]
struct ReconfigureReply {
from: String
}
pub struct ThreadActor {
name: String,
}
@ -74,6 +79,11 @@ impl Actor for ThreadActor {
ActorMessageStatus::Processed
},
"reconfigure" => {
stream.write_json_packet(&ReconfigureReply { from: self.name() });
ActorMessageStatus::Processed
}
_ => ActorMessageStatus::Ignored,
})
}