Skip to main content

Adapter

Trait Adapter 

Source
pub trait Adapter {
    // Required methods
    fn name(&self) -> &str;
    fn run(&self) -> Vec<CheckResult>;
}
Expand description

In-process adapter trait. Implement this to conform a subject natively.

Required Methods§

Source

fn name(&self) -> &str

Human-readable adapter name.

Source

fn run(&self) -> Vec<CheckResult>

Run all checks and return their results.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§