Skip to main content

AgentDetector

Trait AgentDetector 

Source
pub trait AgentDetector: Send + Sync {
    // Required methods
    fn id(&self) -> &'static str;
    fn display_name(&self) -> &'static str;
    fn detect(&self, home: &Path) -> AgentSnapshot;
}
Expand description

Trait every per-agent detector implements.

Required Methods§

Source

fn id(&self) -> &'static str

Fn.

Source

fn display_name(&self) -> &'static str

Fn.

Source

fn detect(&self, home: &Path) -> AgentSnapshot

Inspect home (the user’s home directory) and produce a snapshot. Detectors must not panic on missing paths — InstallStatus::No is the expected outcome for absent agents.

Implementors§