pub struct Fake;Expand description
The test agent, launched through the fake-agent fixture.
Trait Implementations§
Source§impl Adapter for Fake
impl Adapter for Fake
fn metadata(&self) -> &'static AdapterMetadata
Source§fn paths(
&self,
root: &AppRoot,
profile: &ProfileName,
) -> Vec<(PathBuf, PathKind)>
fn paths( &self, root: &AppRoot, profile: &ProfileName, ) -> Vec<(PathBuf, PathKind)>
Pure: no filesystem access. Every path the adapter owns for
profile, in creation order. The first
entry is always the adapter’s profile directory.Source§fn plan(&self, ctx: &PlanContext<'_>) -> Result<PlannedLaunch>
fn plan(&self, ctx: &PlanContext<'_>) -> Result<PlannedLaunch>
Reads the filesystem at most; never writes. Discovers the executable, then refuses case-only twins.
Source§fn presence(&self, root: &AppRoot, profile: &ProfileName) -> ProfilePresence
fn presence(&self, root: &AppRoot, profile: &ProfileName) -> ProfilePresence
Reads the filesystem at most; never writes; never consults
PATH or the executable (spec §8).Source§fn initialize(&self, planned: &PlannedLaunch) -> Result<()>
fn initialize(&self, planned: &PlannedLaunch) -> Result<()>
Ensures every path in
planned.paths, in order; idempotent; never overwrites a file (spec §9, §9.1).impl Copy for Fake
Auto Trait Implementations§
impl Freeze for Fake
impl RefUnwindSafe for Fake
impl Send for Fake
impl Sync for Fake
impl Unpin for Fake
impl UnsafeUnpin for Fake
impl UnwindSafe for Fake
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