Skip to main content

Setup

Trait Setup 

Source
pub trait Setup:
    Send
    + Sync
    + 'static {
    // Required methods
    fn driver(&self) -> Box<dyn Driver>;
    fn delete_table<'life0, 'life1, 'async_trait>(
        &'life0 self,
        name: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn driver(&self) -> Box<dyn Driver>

Return a new instance of the driver

Source

fn delete_table<'life0, 'life1, 'async_trait>( &'life0 self, name: &'life1 str, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Delete the table with the specified name. This is used by the test runner to cleanup after itself.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§