pub async fn add_profile_with_capabilities(
        &mut self,
        name: String,
        profile_url: String,
        use_capabilities: Vec<Capability>,
        expose_capabilities: Vec<Capability>,
    ) -> Result<ProfileObserver, Error> {
        let (mut spec, request_stream) = PiconetMemberSpec::for_profile(name);
        let mut caps = routes_from_capabilities(
            use_capabilities,
            RouteEndpoint::AboveRoot,
            vec![RouteEndpoint::Component(spec.name.clone())],
        );
        caps.extend(routes_from_capabilities(
            expose_capabilities,
            RouteEndpoint::Component(spec.name.clone()),
            vec![RouteEndpoint::AboveRoot],
        ));

        self.add_profile_from_spec(&mut spec, profile_url, caps).await?;
        Ok(ProfileObserver::new(request_stream, spec.id))
    }
/// Add a profile with moniker `name` to the test topology.
/// The profile should be accessible via the provided `profile_url` and will be launched
/// during the test.
/// `use_capabilities` specifies any capabilities used by the profile that will be
/// provided outside the test realm.
/// `expose_capabilities` specifies any capabilities provided by the profile to be
/// available in the outgoing directory of the test realm root.
///
/// Returns an observer for the launched profile.
Add a profile with moniker `name` to the test topology.
The profile should be accessible via the provided `profile_url` and will be launched
during the test.
`use_capabilities` specifies any capabilities used by the profile that will be
provided outside the test realm.
`expose_capabilities` specifies any capabilities provided by the profile to be
available in the outgoing directory of the test realm root.

Returns an observer for the launched profile.
Add a profile with moniker ` name ` to the test topology . The profile should be accessible via the provided ` profile_url ` and will be launched during the test . ` use_capabilities ` specifies any capabilities used by the profile that will be provided outside the test realm . ` expose_capabilities ` specifies any capabilities provided by the profile to be available in the outgoing directory of the test realm root . Returns an observer for the launched profile .
pub async fn add_profile_with_capabilities(
        &mut self,
        name: String,
        profile_url: String,
        use_capabilities: Vec<Capability>,
        expose_capabilities: Vec<Capability>,
    ) -> Result<ProfileObserver, Error> {
        let (mut spec, request_stream) = PiconetMemberSpec::for_profile(name);
        let mut caps = routes_from_capabilities(
            use_capabilities,
            RouteEndpoint::AboveRoot,
            vec![RouteEndpoint::Component(spec.name.clone())],
        );
        caps.extend(routes_from_capabilities(
            expose_capabilities,
            RouteEndpoint::Component(spec.name.clone()),
            vec![RouteEndpoint::AboveRoot],
        ));
        self.add_profile_from_spec(&mut spec, profile_url, caps).await?;
        Ok(ProfileObserver::new(request_stream, spec.id))
    }
pub async fn add_profile_with_capabilities ( & mut self , name : String , profile_url : String , use_capabilities : Vec < Capability > , expose_capabilities : Vec < Capability > , ) -> Result < ProfileObserver , Error > { let ( mut spec , request_stream ) = PiconetMemberSpec :: for_profile ( name ) ; let mut caps = routes_from_capabilities ( use_capabilities , RouteEndpoint :: AboveRoot , vec ! [ RouteEndpoint Component ( spec name clone ( ) ) ] , ) ; caps . extend ( routes_from_capabilities ( expose_capabilities , RouteEndpoint :: Component ( spec . name . clone ( ) ) , vec ! [ RouteEndpoint AboveRoot ] , ) ) ; self . add_profile_from_spec ( & mut spec , profile_url , caps ) . await ? ; Ok ( ProfileObserver :: new ( request_stream , spec . id ) ) }
Add a profile with moniker `name` to the test topology.
Add a profile with moniker ` name ` to the test topology .
&mut self
name
String
profile_url
String
use_capabilities
Vec<Capability>
expose_capabilities
Vec<Capability>
&mut self
name
String
profile_url
String
use_capabilities
Vec<Capability>
expose_capabilities
Vec<Capability>