pub struct Cursor;Expand description
The Cursor Agent CLI adapter.
Trait Implementations§
Source§impl Adapter for Cursor
impl Adapter for Cursor
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 Cursor
Auto Trait Implementations§
impl Freeze for Cursor
impl RefUnwindSafe for Cursor
impl Send for Cursor
impl Sync for Cursor
impl Unpin for Cursor
impl UnsafeUnpin for Cursor
impl UnwindSafe for Cursor
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