pub struct PlatformEnvironment {
pub platform: PlatformKind,
pub home_dir: Option<PathBuf>,
pub xdg_config_home: Option<PathBuf>,
pub xdg_data_home: Option<PathBuf>,
pub xdg_state_home: Option<PathBuf>,
pub xdg_cache_home: Option<PathBuf>,
pub xdg_runtime_dir: Option<PathBuf>,
pub app_data: Option<PathBuf>,
pub local_app_data: Option<PathBuf>,
pub temp_dir: Option<PathBuf>,
}Expand description
Platform directory inputs captured from the environment.
Fields§
§platform: PlatformKind§home_dir: Option<PathBuf>§xdg_config_home: Option<PathBuf>§xdg_data_home: Option<PathBuf>§xdg_state_home: Option<PathBuf>§xdg_cache_home: Option<PathBuf>§xdg_runtime_dir: Option<PathBuf>§app_data: Option<PathBuf>§local_app_data: Option<PathBuf>§temp_dir: Option<PathBuf>Trait Implementations§
Source§impl Clone for PlatformEnvironment
impl Clone for PlatformEnvironment
Source§fn clone(&self) -> PlatformEnvironment
fn clone(&self) -> PlatformEnvironment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PlatformEnvironment
impl Debug for PlatformEnvironment
Source§impl PartialEq for PlatformEnvironment
impl PartialEq for PlatformEnvironment
Source§fn eq(&self, other: &PlatformEnvironment) -> bool
fn eq(&self, other: &PlatformEnvironment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PlatformEnvironment
impl StructuralPartialEq for PlatformEnvironment
Auto Trait Implementations§
impl Freeze for PlatformEnvironment
impl RefUnwindSafe for PlatformEnvironment
impl Send for PlatformEnvironment
impl Sync for PlatformEnvironment
impl Unpin for PlatformEnvironment
impl UnsafeUnpin for PlatformEnvironment
impl UnwindSafe for PlatformEnvironment
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