Skip to main content

discover_all

Function discover_all 

Source
pub async fn discover_all(
    mdns: &MdnsService,
    query: &str,
    service_name: &str,
    timeout: Duration,
) -> Result<Vec<(String, MatterDeviceInfo)>>
Expand description

Discover all matching devices until the timeout expires.

Like discover_one but collects every device whose ServiceDiscovered event matches service_name and for which extract_matter_info succeeds, until timeout elapses. Returns an empty Vec if no devices are found (not an error).