DriverTestRealmInstance2

Trait DriverTestRealmInstance2 

Source
pub trait DriverTestRealmInstance2 {
    // Required methods
    fn driver_test_realm_connect_to_dev(&self) -> Result<DirectoryProxy>;
    fn wait_for_bootup<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn wait_for_node<'life0, 'life1, 'async_trait>(
        &'life0 self,
        moniker: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<NodeInfo>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn driver_test_realm_connect_to_dev(&self) -> Result<DirectoryProxy>

Connect to the /dev/ directory hosted by DriverTestRealm in this Instance.

Source

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

Waits for the driver manager boot up logic to complete. This will ensure all in-progress binds complete and indicates its safe to proceed with the test or tear down the test realm with no errors.

Source

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

Waits for the node matching the given moniker.

Implementations on Foreign Types§

Source§

impl DriverTestRealmInstance for RealmInstance

Source§

fn driver_test_realm_connect_to_dev(&self) -> Result<DirectoryProxy>

Source§

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

Source§

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

Implementors§