Expand description
printobserver-vision-api.
Owns: the port external observations arrive through — the trait for normalizing a received body into this system’s own event vocabulary and for retrieving the image one names, the two shapes those methods carry, and that port’s own error type.
May depend on: printobserver-types only. A port that named an
implementation would stop being a port.
§This port is normalization and retrieval only
Ingress transport belongs to the server: nothing here listens, routes or
authenticates. A body arrives here already received, and what leaves is
either a NormalizedAlert in this system’s own vocabulary or a
VisionError saying why one could not be made.
§Why the methods answer a boxed future
Every method is asynchronous, and the trait is dyn-compatible and shareable
across threads, because the supervision core holds all four ports behind
Arc<dyn Port>. An async fn in a trait is not dyn-compatible, so each
method answers a BoxFuture instead.
Structs§
- Fetched
Image - One image, as it was retrieved.
- Normalized
Alert - One external body, read into this system’s own event vocabulary.
Enums§
- Vision
Error - Why a body could not be read, or an image could not be retrieved.
Traits§
- Vision
Port - The port external observations arrive through.
Type Aliases§
- BoxFuture
- A future this port’s methods answer with, in the one shape a trait object can carry.