Expand description
Namespace-based mesh registry for discovering and connecting to remote meshes.
This module provides a namespace abstraction for registering and looking up meshes (host, proc, and actor) by name. Names are unique within a namespace, and the full key is composed of (namespace, kind, name).
§Example
ⓘ
let ns = InMemoryNamespace::new("my.prefix.tier");
// Register meshes
ns.register("workers", &actor_mesh_ref).await?;
ns.register("procs", &proc_mesh_ref).await?;
// Lookup meshes
let actors: ActorMeshRef<MyActor> = ns.get("workers").await?;
let procs: ProcMeshRef = ns.get("procs").await?;Structs§
- InMemory
Namespace - An in-memory namespace implementation for testing.
Enums§
- Mesh
Kind - The kind of mesh being registered.
- Namespace
Error - Errors that can occur during namespace operations.
Traits§
- Namespace
- A namespace for registering and looking up meshes.
- Registrable
- Trait for mesh types that can be registered in a namespace.