Skip to main content

discover_into

Function discover_into 

Source
pub fn discover_into<P: DiscoveryProvider>(
    provider: &P,
    query: DiscoveryQuery,
    now: DiscoveryClock,
    out: &mut [Option<DiscoveredEndpoint>],
) -> Result<usize, DiscoveryError>
Expand description

Resolve a scoped query into caller-owned output.

A fixed stack scratch buffer validates the complete result set before the caller’s output is modified. The provider result is still an assertion and does not authorize use of a sensor or establish the endpoint’s identity. On success, only out[..count] is replaced; the caller-owned tail remains untouched and has no validity guarantee from this call.