spin_doctor::wasm

Trait WasmDiagnostic

Source
pub trait WasmDiagnostic {
    type Diagnosis: Diagnosis;

    // Required method
    fn diagnose_wasm<'life0, 'life1, 'async_trait>(
        &'life0 self,
        app: &'life1 PatientApp,
        wasm: PatientWasm,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Diagnosis>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

WasmDiagnostic helps implement Diagnostic for Wasm source problems.

Required Associated Types§

Source

type Diagnosis: Diagnosis

A Diagnosis representing the problem(s) this can detect.

Required Methods§

Source

fn diagnose_wasm<'life0, 'life1, 'async_trait>( &'life0 self, app: &'life1 PatientApp, wasm: PatientWasm, ) -> Pin<Box<dyn Future<Output = Result<Vec<Self::Diagnosis>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Check the given PatientWasm, returning any problem(s) found.

Implementors§