Trait gear_core::ids::prelude::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ActorIdExt for ActorId

source§

const SYSTEM: Self = _