pub struct DepProducer { /* private fields */ }Expand description
Producer adapter that runs a DepCheck and converts the result
into a Report.
Subprocess failures map to a single failing CheckResult named
deps::health with Severity::Critical — no panics.
§Example
use dev_deps::{DepCheck, DepProducer, DepScope};
use dev_report::Producer;
let producer = DepProducer::new(
DepCheck::new("my-crate", "0.1.0").scope(DepScope::All),
);
let report = producer.produce();
println!("{}", report.to_json().unwrap());Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DepProducer
impl RefUnwindSafe for DepProducer
impl Send for DepProducer
impl Sync for DepProducer
impl Unpin for DepProducer
impl UnsafeUnpin for DepProducer
impl UnwindSafe for DepProducer
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