Expand description
The JSON a caller sends and the JSON this server answers with.
Nothing here restates a contract type. A request carries the values one
[PrintAction] variant needs and this module assembles the action; an
answer carries the contract’s own records as they are. In particular no
answer carries image bytes: ImageAnswer carries the record and the
absolute path its bytes are at, because the server, the command-line program
and the agent all run on the one host and image transport is a filesystem
path.
Structs§
- Action
Answer - What one mutating request left behind it.
- Action
Body - One request for one action of the vocabulary.
- BedClear
Answer - What recording the operator’s word that the bed is clear answers: the event it was recorded as, which every recovery decided on it names.
- BedClear
Body - One request recording the operator’s word that the bed is clear.
- Body
Refusal - Why a request could not be turned into one action of the vocabulary.
- Context
Answer - What a context read answers.
- Error
Answer - What this server answers when it will not do what it was asked.
- Events
Answer - What an events read answers: the events stored after its cursor that pass its filters, oldest first, and where the next read picks up.
- History
Answer - What a history read answers.
- Image
Answer - What an image read answers.
- Ingress
Answer - What the ingress answers a post it accepted.
- Manifest
Answer - What a manifest read or write answers.
- Manifest
Body - One request to replace a print’s manifest.
- Preflight
Answer - What a filament check answers.
- Print
Ended - One print’s end, as its
print_endedevent stored it. - Prints
Answer - What the prints read answers: every print, and the one the printer is running.
- Recovery
Answer - What a recovery action answers, carried out or refused.
- Spool
Answer - What one spool’s read answers: the spool, and the newest of the printer’s own events that name it.
- Spool
Command Answer - What a spool command answers, accepted or refused.
- Spools
Answer - What the spools read answers.
- Status
Answer - What a status read answers.
- Timeline
Answer - What a printer history read answers: one page of the printer’s own events.
Functions§
- at_
a_ glance - One spool, in one line: its name, its material, what is left of what it held, where it is, whether its figure can be trusted, and whether it is retired.
- claimed_
actor - The actor a spool command’s body claims, read before anything else of it, so the claim is held to the caller before the body is ruled on.
- reason_
of - The reason a mutating request carries, refused when it carries none.
- recovery_
of - The recovery action one request asks for, assembled from its body.
- spool_
command_ of - The spool command one request asks for, assembled from its body.
Type Aliases§
- Look
Answer - What a fresh look answers: the look, as the supervision core took it.
- Recovery
Status Answer - What the recovery read answers: everything a recovery is checked against now, as the supervision core reads it.