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.