Skip to main content

server_placement_stream_frames

Function server_placement_stream_frames 

Source
pub fn server_placement_stream_frames(
    cx: &mut Cx,
    site: &dyn Site,
    fragment: PlacedFragment,
    request: ServerPlacementRequest,
    codec: Symbol,
    frame_envelope: FrameEnvelope,
) -> Result<Vec<ServerFrame>>
Expand description

Places a fragment on the server site and encodes the exchange as frames.

Requires the run-node-on-server and remote-network capabilities (plus host-device access when the fragment touches a host device), validates the request’s resource limits, then emits a StreamStart frame, a redacted request-report frame, a result-report frame for the realized node, one chunk frame per output envelope, and a closing StreamEnd frame. Realtime-pinned requests and any resource-limit breach short-circuit to a refusal frame followed by StreamEnd instead of executing the node.