pub async fn start_with_binder_sync(&self) -> Result<(), anyhow::Error> {
        let event_source = EventSource::new().context("failed to create EventSource")?;
        let mut event_stream = event_source
            .subscribe(vec![EventSubscription::new(vec![Started::NAME], EventMode::Async)])
            .await
            .context("failed to subscribe to EventSource")?;

        let _ = self
            .connect_to_protocol_at_exposed_dir::<fcomponent::BinderMarker>()
            .context("failed to connect to fuchsia.component.Binder")?;

        let _ = EventMatcher::ok()
            .moniker(self.child_name.to_owned())
            .wait::<Started>(&mut event_stream)
            .await
            .context("failed to observe Started event")?;

        Ok(())
    }
/// Same as `connect_to_binder` except that it will block until the
/// component has started.
/// Note: This function expects that the instance has not been started yet.
/// If the instance has been started before this method is invoked, then
/// this method will block forever waiting for the Started event.
/// REQUIRED: The manifest of the component executing this code must use
/// the `fuchsia.sys2.EventSource` protocol from the framework and the
/// "started" event.
Same as `connect_to_binder` except that it will block until the
component has started.
Note: This function expects that the instance has not been started yet.
If the instance has been started before this method is invoked, then
this method will block forever waiting for the Started event.
REQUIRED: The manifest of the component executing this code must use
the `fuchsia.sys2.EventSource` protocol from the framework and the
"started" event.
Same as ` connect_to_binder ` except that it will block until the component has started . Note : This function expects that the instance has not been started yet . If the instance has been started before this method is invoked then this method will block forever waiting for the Started event . REQUIRED : The manifest of the component executing this code must use the ` fuchsia . sys2 . EventSource ` protocol from the framework and the " started " event .
pub async fn start_with_binder_sync(&self) -> Result<(), anyhow::Error> {
        let event_source = EventSource::new().context("failed to create EventSource")?;
        let mut event_stream = event_source
            .subscribe(vec![EventSubscription::new(vec![Started::NAME], EventMode::Async)])
            .await
            .context("failed to subscribe to EventSource")?;
        let _ = self
            .connect_to_protocol_at_exposed_dir::<fcomponent::BinderMarker>()
            .context("failed to connect to fuchsia.component.Binder")?;
        let _ = EventMatcher::ok()
            .moniker(self.child_name.to_owned())
            .wait::<Started>(&mut event_stream)
            .await
            .context("failed to observe Started event")?;
        Ok(())
    }
pub async fn start_with_binder_sync ( & self ) -> Result < ( ) , anyhow :: Error > { let event_source = EventSource :: new ( ) . context ( " " ) ? ; let mut event_stream = event_source . subscribe ( vec ! [ EventSubscription new ( vec [ Started NAME ] EventMode Async ) ] ) . await . context ( " " ) ? ; let _ = self . connect_to_protocol_at_exposed_dir :: < fcomponent :: BinderMarker > ( ) . context ( " " ) ? ; let _ = EventMatcher :: ok ( ) . moniker ( self . child_name . to_owned ( ) ) . wait :: < Started > ( & mut event_stream ) . await . context ( " " ) ? ; Ok ( ( ) ) }
Same as `connect_to_binder` except that it will block until the
component has started.
Same as ` connect_to_binder ` except that it will block until the component has started .
&self
&self