RpcEnvironment: add environment type enum RpcEnvironmentType

This commit is contained in:
Dietmar Maurer
2019-01-27 10:33:42 +01:00
parent e82dad9700
commit 162b979394
4 changed files with 28 additions and 3 deletions

View File

@ -22,4 +22,9 @@ impl RpcEnvironment for CliEnvironment {
fn get_result_attrib(&self, name: &str) -> Option<&Value> {
self.result_attributes.get(name)
}
fn env_type(&self) -> RpcEnvironmentType {
RpcEnvironmentType::CLI
}
}