Trait scrypto::modules::module::Attachable
source · pub trait Attachable: Sized {
const MODULE_ID: AttachedModuleId;
// Required methods
fn new(handle: ModuleHandle) -> Self;
fn handle(&self) -> &ModuleHandle;
// Provided methods
fn attached(address: GlobalAddress) -> Self { ... }
fn self_attached() -> Self { ... }
fn call<A: ScryptoEncode, T: ScryptoDecode>(
&self,
method: &str,
args: &A
) -> T { ... }
fn call_raw(&self, method: &str, args: Vec<u8>) -> Vec<u8> ⓘ { ... }
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A) { ... }
}
Required Associated Constants§
const MODULE_ID: AttachedModuleId
Required Methods§
fn new(handle: ModuleHandle) -> Self
fn handle(&self) -> &ModuleHandle
Provided Methods§
fn attached(address: GlobalAddress) -> Self
fn self_attached() -> Self
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_raw(&self, method: &str, args: Vec<u8>) -> Vec<u8> ⓘ
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
Object Safety§
This trait is not object safe.