pub trait IpcController {
// Required methods
fn get_type(&self, key: &str) -> String;
fn change_val(&mut self, key: &str, val: &str);
}Required Methods§
Sourcefn get_type(&self, key: &str) -> String
fn get_type(&self, key: &str) -> String
On calling spell-cli -l layer_name look var_name, the cli calls get_type method of the trait with var_name as input.
Sourcefn change_val(&mut self, key: &str, val: &str)
fn change_val(&mut self, key: &str, val: &str)
It is called on spell-cli -l layer_name update key value. as_any is for syncing the changes
internally for now and need not be implemented by the end user.