pub struct Home {
pub root: PathBuf,
}Fields§
§root: PathBufImplementations§
Source§impl Home
impl Home
Sourcepub fn from_env() -> Result<Home>
pub fn from_env() -> Result<Home>
$MITOSIS_HOME, else ~/Library/Application Support/mitosis (macOS) or ~/.local/share/mitosis (Linux).
pub fn at(root: PathBuf) -> Home
pub fn templates_dir(&self) -> PathBuf
pub fn clones_dir(&self) -> PathBuf
Sourcepub fn pg_dir(&self) -> PathBuf
pub fn pg_dir(&self) -> PathBuf
Postgres builds installed by mitosis pg install, one folder per x.y version.
pub fn sockets_dir(&self) -> PathBuf
pub fn logs_dir(&self) -> PathBuf
pub fn state_db(&self) -> PathBuf
pub fn daemon_sock(&self) -> PathBuf
pub fn daemon_lock(&self) -> PathBuf
pub fn config_file(&self) -> PathBuf
Sourcepub fn marker(&self) -> PathBuf
pub fn marker(&self) -> PathBuf
Marks a folder as a Mitosis home; gc and chmod only ever touch a marked root.
Sourcepub fn ensure_dirs(&self) -> Result<()>
pub fn ensure_dirs(&self) -> Result<()>
Creates the layout. An existing root without the marker is adopted only when it is empty or
holds state.db plus nothing but Mitosis’s own entries; any other folder is refused, so gc
never sees it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Home
impl RefUnwindSafe for Home
impl Send for Home
impl Sync for Home
impl Unpin for Home
impl UnsafeUnpin for Home
impl UnwindSafe for Home
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