Trait scrypto::component::object::ObjectStub
source · pub trait ObjectStub: Copy {
type AddressType: TryFrom<[u8; 30]>;
// Required methods
fn new(handle: ObjectStubHandle) -> Self;
fn handle(&self) -> &ObjectStubHandle;
// Provided methods
fn call<A: ScryptoEncode, T: ScryptoDecode>(
&self,
method: &str,
args: &A
) -> T { ... }
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A) { ... }
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T { ... }
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool { ... }
fn blueprint_id(&self) -> BlueprintId { ... }
}
Required Associated Types§
type AddressType: TryFrom<[u8; 30]>
Required Methods§
fn new(handle: ObjectStubHandle) -> Self
fn handle(&self) -> &ObjectStubHandle
Provided Methods§
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool
fn blueprint_id(&self) -> BlueprintId
Object Safety§
This trait is not object safe.