Skip to main content

Module spec05

Module spec05 

Source
Expand description

RETURNS-36: a peer on plexus-wire’s spec as main wrote it, read as 0.8. RETURNS-36 · a peer on plexus-wire’s spec as main wrote it (spec/03, 05), read into 0.8’s shapes — one rule for the client and plexus-core’s child seam (its remote_child::peer), never guessed from anything the peer did not say:

  • a progress frame without content is the default progress type, a Note: {message, percentage};
  • an error frame without error is typed from its spec/05 fields (remote_error): by error_kind, else by code — -32601 not found, -32602 invalid params, -32001 unauthenticated, -32003 forbidden — a kind this build does not know kept whole (RemoteError::Other), and nothing named the method failing.

A 0.8 frame is never rewritten: each rule fills only what the peer left out, and a reader asks only when a frame did not read as 0.8.

Functions§

item
A stream item that did not read as 0.8, in 0.8’s shape: a progress frame without content, an error frame without error. None for anything else (it stays unreadable, as it was).
remote_error
spec/05’s error fields as the typed RemoteError they say.