iquery::commands

Trait Command

Source
pub trait Command {
    type Result: Serialize + Display;

    // Required method
    fn execute<P: DiagnosticsProvider>(
        self,
        provider: &P,
    ) -> impl Future<Output = Result<Self::Result, Error>>;
}

Required Associated Types§

Required Methods§

Source

fn execute<P: DiagnosticsProvider>( self, provider: &P, ) -> impl Future<Output = Result<Self::Result, Error>>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§