Expand description
This module implements structured cloning, as defined by HTML.
Structsยง
- Structured
Data ๐Reader - Reader and writer structs for results from, and inputs to, structured-data read/write operations. https://html.spec.whatwg.org/multipage/#safe-passing-of-structured-data
- Structured
Data ๐Writer - A data holder for transferred and serialized objects.
Enumsยง
- Operation
Error ๐ - Structured
Clone ๐Tags - Structured
Data ๐
Staticsยง
Functionsยง
- can_
transfer_ ๐ โcallback - can_
transfer_ ๐ โfor_ type - free_
transfer_ ๐ โcallback - read ๐
- Read structured serialized data, possibly containing transferred objects. Returns a vec of rooted transfer-received ports, or an error.
- read_
callback ๐ โ - read_
object ๐ โ - read_
transfer_ ๐ โcallback - reader_
for_ ๐type - receive_
object ๐ - receiver_
for_ ๐type - report_
error_ ๐ โcallback - sab_
cloned_ ๐ โcallback - serialize_
for_ ๐type - transfer_
for_ ๐type - try_
serialize ๐ โ - try_
transfer ๐ โ - write ๐
- Writes a structured clone. Returns a
DataClone
error if that fails. - write_
callback ๐ โ - write_
object ๐ โ - write_
transfer_ ๐ โcallback - https://html.spec.whatwg.org/multipage/#structuredserializewithtransfer
Type Aliasesยง
- Serialize
Operation ๐ - Transfer
Operation ๐