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
.
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.