Skip to main content

Module service_scope

Module service_scope 

Source
Expand description

NEST-11 · which service a call is routed in.

A call enters a service at DynamicHub::route_with_ctx (a socket’s {ns}.call, a HubTransport, a test’s route); the outermost one it enters is its service, and everything that routing reaches — an activation, a child mounted below it, a peer in a slot — runs knowing it. A RemoteChild keeps it, weakly, for each call it forwards: the far side’s calls back under that call are routed through this service’s own routing and gate, as its caller.

Nothing here admits anyone: the service is a route, never a caller.

Structs§

WeakService
A service, held weakly: what a child keeps of the service it is mounted in, so it never keeps that service alive. Cheap to clone.