Trait script::dom::bindings::transferable::Transferable
source · pub trait Transferable: DomObject {
// Required methods
fn transfer(&self, sc_holder: &mut StructuredDataHolder) -> Result<u64, ()>;
fn transfer_receive(
owner: &GlobalScope,
sc_holder: &mut StructuredDataHolder,
extra_data: u64,
return_object: MutableHandleObject,
) -> Result<(), ()>;
}
Required Methods§
fn transfer(&self, sc_holder: &mut StructuredDataHolder) -> Result<u64, ()>
fn transfer_receive( owner: &GlobalScope, sc_holder: &mut StructuredDataHolder, extra_data: u64, return_object: MutableHandleObject, ) -> Result<(), ()>
Object Safety§
This trait is not object safe.