pub struct SpacetimePaths {
pub cli_config_dir: ConfigDir,
pub cli_bin_file: BinFile,
pub cli_bin_dir: BinDir,
pub data_dir: ServerDataDir,
}Fields§
§cli_config_dir: ConfigDir§cli_bin_file: BinFile§cli_bin_dir: BinDir§data_dir: ServerDataDirImplementations§
Source§impl SpacetimePaths
impl SpacetimePaths
Sourcepub fn platform_defaults() -> Result<Self>
pub fn platform_defaults() -> Result<Self>
Get the default directories for the current platform.
Returns an error if the platform director(y/ies) cannot be found.
pub fn from_root_dir(dir: &RootDir) -> Self
pub fn to_root_dir(&self) -> Option<RootDir>
Trait Implementations§
Source§impl Clone for SpacetimePaths
impl Clone for SpacetimePaths
Source§fn clone(&self) -> SpacetimePaths
fn clone(&self) -> SpacetimePaths
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SpacetimePaths
impl RefUnwindSafe for SpacetimePaths
impl Send for SpacetimePaths
impl Sync for SpacetimePaths
impl Unpin for SpacetimePaths
impl UnwindSafe for SpacetimePaths
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