pub trait Conf: Debug + Send {
// Required methods
fn is_modified(&self) -> Result<bool, Box<dyn Error>>;
fn var(&self, key: &str) -> Option<Value>;
fn env(&self) -> Option<Value>;
fn path(&self) -> Result<Option<Vec<PathBuf>>, ShellError>;
fn clone_box(&self) -> Box<dyn Conf>;
fn reload(&mut self);
}Required Methods§
fn is_modified(&self) -> Result<bool, Box<dyn Error>>
fn var(&self, key: &str) -> Option<Value>
fn env(&self) -> Option<Value>
fn path(&self) -> Result<Option<Vec<PathBuf>>, ShellError>
fn clone_box(&self) -> Box<dyn Conf>
fn reload(&mut self)
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".