pub trait Serializable: DomObject {
    fn serialize(
        &self,
        sc_holder: &mut StructuredDataHolder
    ) -> Result<StorageKey, ()>; fn deserialize(
        owner: &GlobalScope,
        sc_holder: &mut StructuredDataHolder,
        extra_data: StorageKey
    ) -> Result<(), ()>; }
Expand description

Interface for serializable platform objects. https://html.spec.whatwg.org/multipage/#serializable

Required Methods§

Implementors§