fuchsia_driver_test

Trait DriverTestRealmBuilder

Source
pub trait DriverTestRealmBuilder {
    // Required methods
    fn driver_test_realm_manifest_setup<'life0, 'life1, 'async_trait>(
        &'life0 self,
        manifest_url: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn driver_test_realm_setup<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn driver_test_realm_add_dtr_exposes<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dtr_exposes: &'life1 Vec<Capability>,
    ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn driver_test_realm_add_dtr_offers<'life0, 'life1, 'async_trait>(
        &'life0 self,
        dtr_offers: &'life1 Vec<Capability>,
        from: Ref,
    ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

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

Set up the DriverTestRealm component in the RealmBuilder realm. This configures proper input/output routing of capabilities. This takes a manifest_url to use, which is used by tests that need to specify a custom driver test realm.

Source

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

Set up the DriverTestRealm component in the RealmBuilder realm. This configures proper input/output routing of capabilities.

Source

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

For use in conjunction with fuchsia.driver.test.RealmArgs/dtr_exposes defined in sdk/fidl/fuchsia.driver.test/realm.fidl. Whenever a dtr_exposes is going to be provided to the RealmArgs, the user MUST call this function with a reference to the same dtr_exposes vector it intends to use. This will setup the necessary expose declarations inside the driver test realm and add the necessary realm_builder routes to support it.

Source

fn driver_test_realm_add_dtr_offers<'life0, 'life1, 'async_trait>( &'life0 self, dtr_offers: &'life1 Vec<Capability>, from: Ref, ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

For use in conjunction with fuchsia.driver.test.RealmArgs/dtr_offers defined in sdk/fidl/fuchsia.driver.test/realm.fidl. Whenever a dtr_offers is going to be provided to the RealmArgs, the user MUST call this function with a reference to the same dtr_offers vector it intends to use. This will setup the necessary offers declarations inside the driver test realm and add the necessary realm_builder routes to support it.

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.

Implementations on Foreign Types§

Source§

impl DriverTestRealmBuilder for RealmBuilder

Source§

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

Source§

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

Source§

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

Source§

fn driver_test_realm_add_dtr_offers<'life0, 'life1, 'async_trait>( &'life0 self, dtr_offers: &'life1 Vec<Capability>, from: Ref, ) -> Pin<Box<dyn Future<Output = Result<&Self>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§