pub struct CommandAnalyzer { /* private fields */ }Expand description
An Analyzer backed by an external command (--analyzer-cmd).
Implementations§
Source§impl CommandAnalyzer
impl CommandAnalyzer
Sourcepub fn new(cmd: &str) -> Result<Self>
pub fn new(cmd: &str) -> Result<Self>
Construct and probe. The probe lets the command self-describe; a probe
that fails to spawn errors here (at construction, not mid-run), while a
probe that merely returns nothing usable falls back to an id generated
from the command name. The resulting manifest is always trust class
Command / auto-apply Never — advisory only, regardless of what the
command claims.
Trait Implementations§
Source§impl Analyzer for CommandAnalyzer
impl Analyzer for CommandAnalyzer
fn manifest(&self) -> &AnalyzerManifest
Auto Trait Implementations§
impl Freeze for CommandAnalyzer
impl RefUnwindSafe for CommandAnalyzer
impl Send for CommandAnalyzer
impl Sync for CommandAnalyzer
impl Unpin for CommandAnalyzer
impl UnsafeUnpin for CommandAnalyzer
impl UnwindSafe for CommandAnalyzer
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