Skip to main content

Module mesh_delivery

Module mesh_delivery 

Source
Expand description

How the mesh hands inbound messages to the local side (P3-K0, K1).

The in-kernel mesh delivers into the A2ARouter. A machine mesh service has no kernel router; it implements LocalDelivery to route to tenant registrations instead. MeshRuntime only sees this trait.

§Trust

Everything a peer puts in an envelope is untrusted input. In particular dest_scope is only a request for an address and src_scope only a claim; neither is evidence of tenancy. What the implementor may rely on is PeerCtx: it is built by the kernel from the connection (admission result, Noise static key), never from envelope fields.

Structs§

PeerCtx
Who delivered a message, as established by the connection.

Traits§

LocalDelivery
Sink for messages that arrived from a mesh peer and are bound for a local recipient.