pub struct Home {
pub root: PathBuf,
pub shared: PathBuf,
pub bashwrap_dir: PathBuf,
}Expand description
The AgentMux root a migration works on.
Fields§
§root: PathBufshared/, beside channels/ and dev/.
bashwrap_dir: PathBufbashwrap’s cwd files (K11). bashwrap reads ~/.agentmux from the
user’s home whatever the overrides say, so a test or an isolated
task dev gets one under its own root instead.
Implementations§
Source§impl Home
impl Home
Sourcepub fn from_env() -> Result<Home, String>
pub fn from_env() -> Result<Home, String>
The root this srv runs on: AGENTMUX_HOME_OVERRIDE when it is set,
else the root captured at startup.
pub fn definitions(&self) -> PathBuf
pub fn reactive(&self) -> PathBuf
pub fn leases(&self) -> PathBuf
pub fn lock_file(&self) -> PathBuf
pub fn backups(&self) -> PathBuf
Sourcepub fn host_stores(&self, installs: &[Install]) -> Vec<PathBuf>
pub fn host_stores(&self, installs: &[Install]) -> Vec<PathBuf>
The host-wide stores that hold name-keyed rows: store.db (cron jobs,
MuxBus credentials) and identity-store.db (the work queue), plus an
install’s own identity-store.db under isolated auth.
Sourcepub fn installs(&self) -> Result<Vec<Install>, String>
pub fn installs(&self) -> Result<Vec<Install>, String>
Every install on this root, each with its versions’ data directories:
channels/<ch>/versions/<v>/data (and channels/<ch>/data, a dev
build pointed at a channel), dev/<branch>/data and
dev/<branch>/<clone>/data. A directory that exists but can’t be
listed is an error: a migration must not miss a copy of the slug.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more