pub type ManagerAgent<M> = <<M as ProcManager>::Handle as ProcHandle>::Agent;
Expand description
Type alias for the agent actor managed by a given ProcManager
.
This resolves to the Agent
type exposed by the manager’s
associated Handle
(via ProcHandle::Agent
). It provides a
convenient shorthand so call sites can refer to
ActorRef<ManagerAgent<M>>
instead of the more verbose
<M::Handle as ProcHandle>::Agent
.
§Example
ⓘ
fn takes_agent_ref<M: ProcManager>(r: ActorRef<ManagerAgent<M>>) { … }