Skip to main content

Module server

Module server 

Source
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).await starts the listener.
ServerOptions
Server configuration. Construct in your main, hand to Server::run.

Type Aliases§

PrintJobFn
Callback to process a CUPS raster document on a device.