Executable

Trait Executable 

Source
pub trait Executable {
    type Output;

    // Required method
    fn exec(self) -> impl Future<Output = QueryResult<Self::Output>> + Send;
}
Expand description

A query that can be executed.

Required Associated Types§

Source

type Output

The output type of the query.

Required Methods§

Source

fn exec(self) -> impl Future<Output = QueryResult<Self::Output>> + Send

Execute the query and return the result.

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§