Trait Executor

Source
pub trait Executor:
    Default
    + Send
    + Sync {
    // Required method
    fn execute<T: DeserializeOwned>(
        &self,
        url: &str,
        params: Vec<(&str, Cow<'_, str>)>,
    ) -> impl Future<Output = Result<T, Error>> + Send;
}

Required Methods§

Source

fn execute<T: DeserializeOwned>( &self, url: &str, params: Vec<(&str, Cow<'_, str>)>, ) -> impl Future<Output = Result<T, Error>> + Send

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§