Trait salak::PropertySource[][src]

pub trait PropertySource: Sync + Send {
    fn name(&self) -> String;
fn get_property(&self, name: &str) -> Option<Property>;
fn is_empty(&self) -> bool; fn contains_property(&self, name: &str) -> bool { ... } }

An abstract source loader from various sources, such as commandline arguments, system environment, files, etc.

Required methods

fn name(&self) -> String[src]

Name

fn get_property(&self, name: &str) -> Option<Property>[src]

Get property with name.

fn is_empty(&self) -> bool[src]

Check if the source is empty.

Loading content...

Provided methods

fn contains_property(&self, name: &str) -> bool[src]

Check if property with name exists.

Loading content...

Implementors

impl PropertySource for SysEnv[src]

impl PropertySource for MapPropertySource[src]

Loading content...