Skip to main content

Executable

Trait Executable 

Source
pub trait Executable<T: HasResponse>: Sized {
    // Required method
    fn execute<'life0, 'async_trait>(
        self,
        instance: &'life0 DigitalOcean,
    ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Describes an API call which can be executed.

Required Methods§

Source

fn execute<'life0, 'async_trait>( self, instance: &'life0 DigitalOcean, ) -> Pin<Box<dyn Future<Output = Result<T, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute the corresponding call.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§