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
impl Eq 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 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.