script::dom::bindings::transferable

Trait Transferable

source
pub(crate) trait Transferable: DomObject {
    // Required methods
    fn transfer(&self, sc_writer: &mut StructuredDataWriter) -> Result<u64, ()>;
    fn transfer_receive(
        owner: &GlobalScope,
        sc_reader: &mut StructuredDataReader,
        extra_data: u64,
        return_object: MutableHandleObject,
    ) -> Result<(), ()>;
}

Required Methods§

source

fn transfer(&self, sc_writer: &mut StructuredDataWriter) -> Result<u64, ()>

source

fn transfer_receive( owner: &GlobalScope, sc_reader: &mut StructuredDataReader, extra_data: u64, return_object: MutableHandleObject, ) -> Result<(), ()>

Object Safety§

This trait is not object safe.

Implementors§