Skip to main content

Module structuredclone

Module structuredclone 

Source
Expand description

This module implements structured cloning, as defined by HTML.

Structsยง

StructuredDataReader ๐Ÿ”’
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
StructuredDataWriter ๐Ÿ”’
A data holder for transferred and serialized objects.

Enumsยง

OperationError ๐Ÿ”’
StructuredCloneTags ๐Ÿ”’
StructuredData ๐Ÿ”’

Staticsยง

STRUCTURED_CLONE_CALLBACKS ๐Ÿ”’

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ยง

SerializeOperation ๐Ÿ”’
TransferOperation ๐Ÿ”’