pub struct DelegateDiscovery { /* private fields */ }Expand description
Top-level discovery coordinator. Holds the fingerprint table and probe budget; one instance can be reused across SIGHUP refreshes.
Implementations§
Source§impl DelegateDiscovery
impl DelegateDiscovery
Sourcepub fn new() -> Self
pub fn new() -> Self
Default: scan $PATH, use the built-in fingerprints, 500ms probe
budget per binary.
pub fn with_scanner(self, scanner: PathScanner) -> Self
pub fn with_fingerprints(self, fps: Vec<AgentFingerprint>) -> Self
pub fn with_probe_timeout(self, d: Duration) -> Self
pub fn fingerprints(&self) -> &[AgentFingerprint]
Sourcepub async fn discover(&self) -> Vec<DiscoveredBinary>
pub async fn discover(&self) -> Vec<DiscoveredBinary>
Run the discovery pass. Returns one entry per fingerprint whose
binary was found on $PATH — fingerprints with no hit are
omitted (callers treat absence as “not installed”). Unavailable
entries are included so the operator can see “installed but
broken” in doctor reports.
Trait Implementations§
Source§impl Clone for DelegateDiscovery
impl Clone for DelegateDiscovery
Source§impl Debug for DelegateDiscovery
impl Debug for DelegateDiscovery
Auto Trait Implementations§
impl Freeze for DelegateDiscovery
impl RefUnwindSafe for DelegateDiscovery
impl Send for DelegateDiscovery
impl Sync for DelegateDiscovery
impl Unpin for DelegateDiscovery
impl UnsafeUnpin for DelegateDiscovery
impl UnwindSafe for DelegateDiscovery
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