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§
Required Methods§
sourcefn generate_from_user(code_id: CodeId, salt: &[u8]) -> Self
fn generate_from_user(code_id: CodeId, salt: &[u8]) -> Self
Generates ActorId
from given CodeId
and salt
.
sourcefn generate_from_program(
message_id: MessageId,
code_id: CodeId,
salt: &[u8],
) -> Self
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.