pub async fn wait_until_component_capability(
        &self,
        expected_target_moniker: &str,
        expected_capability_id: &str,
    ) -> Result<RouteCapability, Error> {
        loop {
            let invocation =
                self.wait_until_exact::<RouteCapability>(expected_target_moniker).await?;
            if expected_capability_id == invocation.capability_id {
                match invocation.source {
                    fbreak::CapabilitySource::Component(_) => return Ok(invocation),
                    _ => {}
                }
            }
            invocation.resume().await?;
        }
    }
/// Waits for a component capability to be routed matching a particular
/// target moniker and capability. Implicitly resumes all other invocations.
/// Returns the casted type if successful and an error otherwise.
Waits for a component capability to be routed matching a particular
target moniker and capability. Implicitly resumes all other invocations.
Returns the casted type if successful and an error otherwise.
Waits for a component capability to be routed matching a particular target moniker and capability . Implicitly resumes all other invocations . Returns the casted type if successful and an error otherwise .
pub async fn wait_until_component_capability(
        &self,
        expected_target_moniker: &str,
        expected_capability_id: &str,
    ) -> Result<RouteCapability, Error> {
        loop {
            let invocation =
                self.wait_until_exact::<RouteCapability>(expected_target_moniker).await?;
            if expected_capability_id == invocation.capability_id {
                match invocation.source {
                    fbreak::CapabilitySource::Component(_) => return Ok(invocation),
                    _ => {}
                }
            }
            invocation.resume().await?;
        }
    }
pub async fn wait_until_component_capability ( & self , expected_target_moniker : & str , expected_capability_id : & str , ) -> Result < RouteCapability , Error > { loop { let invocation = self . wait_until_exact :: < RouteCapability > ( expected_target_moniker ) . await ? ; if expected_capability_id == invocation . capability_id { match invocation . source { fbreak :: CapabilitySource :: Component ( _ ) => return Ok ( invocation ) , _ => { } } } invocation . resume ( ) . await ? ; } }
Waits for a component capability to be routed matching a particular
target moniker and capability.
Waits for a component capability to be routed matching a particular target moniker and capability .
&self
expected_target_moniker
&str
expected_capability_id
&str