pub struct ToolDetector { /* private fields */ }Implementations§
Source§impl ToolDetector
impl ToolDetector
pub fn new() -> Self
pub fn with_config(config: ToolDetectionConfig) -> Self
Sourcepub fn detect_tool(&mut self, tool_name: &str) -> ToolStatus
pub fn detect_tool(&mut self, tool_name: &str) -> ToolStatus
Detect tool availability with caching
Sourcepub fn detect_all_vulnerability_tools(
&mut self,
languages: &[Language],
) -> HashMap<String, ToolStatus>
pub fn detect_all_vulnerability_tools( &mut self, languages: &[Language], ) -> HashMap<String, ToolStatus>
Detect all vulnerability scanning tools for given languages
Sourcepub fn clear_cache(&mut self)
pub fn clear_cache(&mut self)
Clear the cache to force fresh detection
Sourcepub fn detect_bun(&mut self) -> ToolStatus
pub fn detect_bun(&mut self) -> ToolStatus
Detect bun specifically with multiple alternatives
Sourcepub fn detect_js_package_managers(&mut self) -> HashMap<String, ToolStatus>
pub fn detect_js_package_managers(&mut self) -> HashMap<String, ToolStatus>
Detect all JavaScript package managers
Sourcepub fn detect_tool_with_alternatives(
&mut self,
primary_name: &str,
alternatives: &[&str],
) -> ToolStatus
pub fn detect_tool_with_alternatives( &mut self, primary_name: &str, alternatives: &[&str], ) -> ToolStatus
Detect tool with alternative command names
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ToolDetector
impl RefUnwindSafe for ToolDetector
impl Send for ToolDetector
impl Sync for ToolDetector
impl Unpin for ToolDetector
impl UnwindSafe for ToolDetector
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.