Skip to main content

IpcController

Trait IpcController 

Source
pub trait IpcController {
    // Required methods
    fn get_type(&self, key: &str) -> String;
    fn change_val(&mut self, key: &str, val: &str);
}

Required Methods§

Source

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.

Source

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.

Implementors§