Skip to main content

order_service_binding_records

Function order_service_binding_records 

pub async fn order_service_binding_records<S, E>(
    records: S,
) -> Result<Vec<ServiceBindingRecord>, Box<dyn Error + Send + Sync>>
where S: Stream<Item = Result<ServiceBindingRecord, E>>, E: Into<Box<dyn Error + Send + Sync>>,
Available on crate features dns and std only.
Expand description

Collect a complete SVCB or HTTPS RRset, ordered by increasing priority with random ordering among equal priorities (including AliasMode records).

Any stream error discards the entire RRset. No implicit record limit applies; use super::resolver::BoundedDnsResolver to bound resolver output and apply a caller-owned deadline to pending streams.