Module script::dom::bindings::structuredclone
source · Expand description
This module implements structured cloning, as defined by [HTML] (https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data).
Enums
A data holder for results from, and inputs to, structured-data read/write operations.
https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data
Statics
Functions
Read structured serialized data, possibly containing transferred objects.
Returns a vec of rooted transfer-received ports, or an error.
read_blob 🔒 ⚠
read_callback 🔒 ⚠
Writes a structured clone. Returns a
DataClone
error if that fails.write_blob 🔒 ⚠
write_callback 🔒 ⚠