Skip to main content

ModeInput

Trait ModeInput 

Source
pub trait ModeInput {
    // Required method
    fn env(&self, name: &str) -> Option<String>;

    // Provided method
    fn per_user_default(&self) -> Result<Suite, SuiteError> { ... }
}
Expand description

Where decide reads from. The default implementation of the provided methods is the real operating system. A test supplies a fake, including one that panics on any read.

Required Methods§

Source

fn env(&self, name: &str) -> Option<String>

An environment variable. decide and roots never call it.

Provided Methods§

Source

fn per_user_default(&self) -> Result<Suite, SuiteError>

The real per-user suite root, from the account database.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§