Skip to main content

DriverTestRealmInstance

Trait DriverTestRealmInstance 

Source
pub trait DriverTestRealmInstance {
    // Required methods
    fn driver_test_realm_start<'life0, 'async_trait>(
        &'life0 self,
        args: RealmArgs,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn driver_test_realm_connect_to_dev(&self) -> Result<DirectoryProxy>;
}

Required Methods§

Source

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

Connect to the DriverTestRealm in this Instance and call Start with args.

Source

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

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementations on Foreign Types§

Source§

impl DriverTestRealmInstance for RealmInstance

Source§

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

Source§

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

Implementors§