pub struct AppStorageDirs {
pub config_dir: PathBuf,
pub state_dir: PathBuf,
pub data_dir: PathBuf,
pub cache_dir: PathBuf,
}Expand description
Resolved canonical storage directories for one application.
No directory is created merely by constructing this value or resolving an
AppStorage.
§Examples
use ailloli_ui_app_storage::AppStorage;
let storage = AppStorage::single_dir("example", "/tmp/example-store").resolve_with_env(|_| None)?;
assert_eq!(storage.dirs().state_dir.to_string_lossy(), "/tmp/example-store/state");Fields§
§config_dir: PathBufDirectory containing user preferences and configuration.
state_dir: PathBufDirectory containing restorable application/window state.
data_dir: PathBufDirectory containing durable application data.
cache_dir: PathBufDirectory containing disposable cached data.
Trait Implementations§
Source§impl Clone for AppStorageDirs
impl Clone for AppStorageDirs
Source§fn clone(&self) -> AppStorageDirs
fn clone(&self) -> AppStorageDirs
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppStorageDirs
impl Debug for AppStorageDirs
Source§impl PartialEq for AppStorageDirs
impl PartialEq for AppStorageDirs
impl Eq for AppStorageDirs
impl StructuralPartialEq for AppStorageDirs
Auto Trait Implementations§
impl Freeze for AppStorageDirs
impl RefUnwindSafe for AppStorageDirs
impl Send for AppStorageDirs
impl Sync for AppStorageDirs
impl Unpin for AppStorageDirs
impl UnwindSafe for AppStorageDirs
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more