Skip to main content

RuntimeOptionBackend

Trait RuntimeOptionBackend 

Source
pub trait RuntimeOptionBackend {
    // Required methods
    fn get(&self, path: &str) -> Option<Value>;
    fn set(&self, path: &str, value: &Value, op: &OpId) -> Outcome;

    // Provided method
    fn alternatives(&self, path: &str) -> Vec<Value> { ... }
}
Expand description

The core-owned runtime-settable options (§12a).

Required Methods§

Source

fn get(&self, path: &str) -> Option<Value>

Source

fn set(&self, path: &str, value: &Value, op: &OpId) -> Outcome

Outcome::Failed("no live mechanism") when the option can only be changed through its write-back.

Provided Methods§

Source

fn alternatives(&self, path: &str) -> Vec<Value>

Other values the option could take right now (for wifi.network: known networks in range, besides the current one).

Implementors§