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§

MediaChangeFn
Called when an operator sets the loaded media from the web UI, before the change is written to the config.
MediaChangeFuture
Boxed, owned future a MediaChangeFn returns.
PrintJobFn
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.
PrintJobFuture
Callback that prints one document to the device, returning a JobOutcome that tells the framework what to do with the job.