pub struct RootDir(pub PathBuf);Expand description
The –root-dir for the spacetime installation, if specified.
Tuple Fields§
§0: PathBufImplementations§
Source§impl RootDir
impl RootDir
pub fn cli_config_dir(&self) -> ConfigDir
pub fn cli_bin_file(&self) -> BinFile
pub fn cli_bin_dir(&self) -> BinDir
pub fn data_dir(&self) -> ServerDataDir
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RootDir
impl<'de> Deserialize<'de> for RootDir
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl FromPathUnchecked for RootDir
impl FromPathUnchecked for RootDir
Source§fn from_path_unchecked(path: impl Into<PathBuf>) -> Self
fn from_path_unchecked(path: impl Into<PathBuf>) -> Self
The responsibility is on the caller to verify that the path is valid
for this directory structure node.
Auto Trait Implementations§
impl Freeze for RootDir
impl RefUnwindSafe for RootDir
impl Send for RootDir
impl Sync for RootDir
impl Unpin for RootDir
impl UnwindSafe for RootDir
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