Skip to main content

fetch_raw_xml

Function fetch_raw_xml 

Source
pub async fn fetch_raw_xml<F, Fut>(read_mem: F) -> Result<Vec<u8>, XmlError>
where F: FnMut(u64, usize) -> Fut, Fut: Future<Output = Result<Vec<u8>, XmlError>>,
Expand description

Fetch the bytes the device’s XML URL points at, exactly as the device serves them: a ZIP archive is not unpacked and nothing is decoded.

For diagnostics: these are the bytes to look at when fetch_and_load_xml refuses a document. The URL registers are read as they are there, the second one when the first is empty or cannot be read.