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§

Required Methods§

source

fn new(handle: ObjectStubHandle) -> Self

source

fn handle(&self) -> &ObjectStubHandle

Provided Methods§

source

fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T

source

fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)

source

fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T

source

fn instance_of(&self, blueprint_id: &BlueprintId) -> bool

source

fn blueprint_id(&self) -> BlueprintId

Object Safety§

This trait is not object safe.

Implementors§