AppDirs

Trait AppDirs 

Source
pub trait AppDirs: Sized {
    // Required methods
    fn new<P>(prefix: P) -> Result<Self, Error>
       where P: Into<PathBuf>;
    fn create(&self) -> Result<(), Error>;
    fn data_dir(&self) -> &Path;
    fn config_dir(&self) -> &Path;
    fn cache_dir(&self) -> &Path;
    fn log_dir(&self) -> &Path;
    fn temporary_dir(&self) -> &Path;
}

Required Methods§

Source

fn new<P>(prefix: P) -> Result<Self, Error>
where P: Into<PathBuf>,

Source

fn create(&self) -> Result<(), Error>

Source

fn data_dir(&self) -> &Path

Source

fn config_dir(&self) -> &Path

Source

fn cache_dir(&self) -> &Path

Source

fn log_dir(&self) -> &Path

Source

fn temporary_dir(&self) -> &Path

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§