Skip to main content

Module fabric

Module fabric 

Source
Expand description

The fabric transport: a session as a realize target on an EvalFabric.

FabricTransport implements the web-bridge Transport trait by delegating every commit to a kernel EvalFabric. Reads and change events stay local to an in-memory store (exactly like the FixtureTransport), but a realized operation is turned into an EvalRequest, answered by the fabric’s realize, and the reply value becomes the resource’s new value. This proves “a surface session is a realize target on the fabric” using the existing Session/pump/diff machinery unchanged: the fabric interprets the checked operation and returns the new resource value.

This transport does not provide streams; the stream methods fail closed.

Structs§

FabricTransport
A transport that commits operations by delegating to an EvalFabric.

Functions§

operation_to_request
Build a default EvalRequest carrying operation as its expression.