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§
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<(), ()>
Object Safety§
This trait is not object safe.