Skip to main content

MigrationScanner

Trait MigrationScanner 

Source
pub trait MigrationScanner {
    // Required methods
    fn name(&self) -> &'static str;
    fn scan(
        &self,
        ctx: &ScanContext<'_>,
    ) -> Result<Vec<MigrationFinding>, OpError>;
}
Expand description

Pluggable scanner — each implementation reports zero or more MigrationFindings for one slice of legacy dev-named state.

Required Methods§

Source

fn name(&self) -> &'static str

Stable, kebab-case identifier; surfaced in finding kind prefixes where helpful.

Source

fn scan(&self, ctx: &ScanContext<'_>) -> Result<Vec<MigrationFinding>, OpError>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§