Skip to main content

Module jobs

Module jobs 

Source
Expand description

State of the jobs of a session. See rpfm_ipc::api::jobs.

Jobs run on the session’s background thread like any other request. The registry only keeps their state, so it can be checked, waited for and cancelled from outside the background thread, and broadcasts every change so connected clients get notified.

Structs§

JobRecord
State of a job, with when it was created and when it last changed.
JobRegistry
State of the jobs of a session.

Constants§

MAX_ENDED_JOBS 🔒
Amount of ended jobs whose state is kept. Older ones are forgotten.
UPDATES_CAPACITY 🔒
Capacity of the channel broadcasting job changes. Slow listeners skip the changes they miss.

Functions§

handle_request
Answers a job control request, without waiting for the session’s other requests.
is_job_control_method
Returns if a method is one of the job control methods, which are answered by handle_request.
to_json 🔒
Serializes a response.