Skip to main content

Execute

Trait Execute 

Source
pub trait Execute {
    type Output;

    // Required method
    fn get(self) -> impl Future<Output = Result<Self::Output>>;
}
Expand description

Trait for executing queries

Required Associated Types§

Source

type Output

The output type of the query execution

Required Methods§

Source

fn get(self) -> impl Future<Output = Result<Self::Output>>

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".

Implementors§

Source§

impl<'a, Client: Request, T: Decodable> Execute for Query<'a, Client, T>

Available on crate feature decoder only.
Source§

impl<'a, Client: Request> Execute for Query<'a, Client, ()>