Expand description
Axum HTTP server: IPP over POST /ipp/print/:name.
Structs§
- AppState
- Axum-shared state. Constructed internally by
Server::router; exposed only so external middleware can read the printer registry. - JobContext
- Context passed to a print-job worker so it can observe cancellation and report progress without re-querying the registry.
- Server
- Entry point —
Server::run(opts).awaitstarts the listener. - Server
Options - Server configuration. Construct in your
main, hand toServer::run.
Type Aliases§
- Media
Change Fn - Called when an operator sets the loaded media from the web UI, before the change is written to the config.
- Media
Change Future - Boxed, owned future a
MediaChangeFnreturns. - Print
JobFn - The print-job callback: given a job context, the document payload, and a
copy count, returns a future resolving to the
crate::raster::JobOutcome. The framework drives spooling/retry around it. - Print
JobFuture - Callback that prints one document to the device, returning a
JobOutcomethat tells the framework what to do with the job.