Function libdav::sd::resolve_srv_record
source · pub async fn resolve_srv_record(
service: DiscoverableService,
domain: &Dname<impl AsRef<[u8]>>,
port: u16,
) -> Result<Option<Vec<(String, u16)>>, SrvError>Expand description
Resolves SRV to locate the caldav server.
If the query is successful and the service is available, returns Ok(Some(_)) with a Vec of
host/ports, in the order in which they should be tried.
If the query is successful but the service is decidedly not available, returns Ok(None).
§Errors
If the underlying DNS request fails or the SRV record cannot be parsed.