Skip to main content

ActorHandleIndex

Trait ActorHandleIndex 

Source
pub trait ActorHandleIndex: Send + Sync {
    // Required method
    fn lookup(
        &self,
        shell: ShellId,
        handle: &BoundedString<32>,
    ) -> Option<ActorId>;
}
Expand description

L2-provided (shell_id, handle) → ActorId index, backing E-actor-3 uniqueness enforcement.

InstanceView::component(...) is keyed by EntityId, so the runtime cannot scan for an Actor by (shell, handle) directly. The L2 layer maintains a BTreeMap projection (deterministic, L0 A5 succession) and hands a &dyn ActorHandleIndex to the ActionContext before dispatching compute.

Required Methods§

Source

fn lookup(&self, shell: ShellId, handle: &BoundedString<32>) -> Option<ActorId>

Return the ActorId already holding (shell, handle), if any. None means the handle is free for the caller’s spawn / rename.

Implementors§