pub fn write_link_format(
w: &mut impl Write,
report: &impl Reporting,
prefix: &[&str],
) -> Result
Expand description
Write a Report into a text write in application/link-format.
As the reports that applications typically get their hands on (as they implement it themselves) don’t have the components to make them into an absolute path, but link-format requires using absolute paths, this takes a prefix argument into which the caller has to feed information about where on the CoAP server the resources are actually located.
Resources that don’t ask that information at construction time (it is gone at run time) can not produce meaningful link-format links to their own resources; they could produce output in HTML or CoRAL, but there are currently no Reporting renderers for those.