gear_core::ids::prelude

Trait ActorIdExt

Source
pub trait ActorIdExt: Sealed {
    const SYSTEM: Self;

    // Required methods
    fn generate_from_user(code_id: CodeId, salt: &[u8]) -> Self;
    fn generate_from_program(
        message_id: MessageId,
        code_id: CodeId,
        salt: &[u8],
    ) -> Self;
}
Expand description

Program (actor) identifier extension.

Required Associated Constants§

Source

const SYSTEM: Self

System program identifier.

Required Methods§

Source

fn generate_from_user(code_id: CodeId, salt: &[u8]) -> Self

Generates ActorId from given CodeId and salt.

Source

fn generate_from_program( message_id: MessageId, code_id: CodeId, salt: &[u8], ) -> Self

Generates ActorId from given MessageId, CodeId and salt.

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§

Source§

impl ActorIdExt for ActorId

Source§

const SYSTEM: Self = _