/// Equivalent to a call to `ffx target remove`. This removes the emulator with the name which
/// matches the target_id parameter from the target list. If no such target exists, the function
/// logs a warning.
Equivalent to a call to `ffx target remove`. This removes the emulator with the name which
matches the target_id parameter from the target list. If no such target exists, the function
logs a warning.
Equivalent to a call to ` ffx target remove ` . This removes the emulator with the name which matches the target_id parameter from the target list . If no such target exists the function logs a warning .
pub async fn remove_target(proxy: &bridge::TargetCollectionProxy, target_id: &str) -> Result<()> {
    if proxy.remove_target(target_id).await? {
        log::debug!("[emulator] Removed target {:?}", target_id);
    } else {
        log::warn!("[emulator] No matching target found for {:?}", target_id);
    }
    Ok(())
}
pub async fn remove_target ( proxy : & bridge :: TargetCollectionProxy , target_id : & str ) -> Result < ( ) > { if proxy . remove_target ( target_id ) . await ? { log :: debug ! ( " " target_id ) ; } else { log :: warn ! ( " " target_id ) ; } Ok ( ( ) ) }
Equivalent to a call to `ffx target remove`.
Equivalent to a call to ` ffx target remove ` .
proxy
&bridge::TargetCollectionProxy
target_id
&str