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