ComponentState

Trait ComponentState 

Source
pub trait ComponentState:
    HasMethods
    + HasStub
    + ScryptoEncode
    + ScryptoDecode {
    const BLUEPRINT_NAME: &'static str;

    // Provided method
    fn instantiate(self) -> Owned<Self> { ... }
}

Required Associated Constants§

Source

const BLUEPRINT_NAME: &'static str

Provided Methods§

Source

fn instantiate(self) -> Owned<Self>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§