pub struct StoreRoot(/* private fields */);Expand description
An absolute path persisted by installation in the service definition. It is never re-resolved from environment variables at store open time.
Implementations§
Source§impl StoreRoot
impl StoreRoot
pub fn from_service_definition(path: PathBuf) -> Result<Self>
Sourcepub fn installation_default() -> Result<Self>
pub fn installation_default() -> Result<Self>
Installation default only. Windows uses the token/registry profile, not APPDATA, LOCALAPPDATA, USERPROFILE or XDG values from a process.
pub fn path(&self) -> &Path
Auto Trait Implementations§
impl Forget for StoreRoot
impl Freeze for StoreRoot
impl Move for StoreRoot
impl RefUnwindSafe for StoreRoot
impl Send for StoreRootwhere
RawVecInner: Send,
impl Sync for StoreRootwhere
RawVecInner: Sync,
impl Unpin for StoreRoot
impl UnsafeUnpin for StoreRoot
impl UnwindSafe for StoreRootwhere
RawVecInner: UnwindSafe,
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