Expand description
Async-operation lifecycle: every mutation Incus documents as
long-running returns one of these, which callers wait on via
Client::wait_for_operation rather than assuming synchronous
completion.
Structs§
- Operation
- An Incus asynchronous operation - see
https://linuxcontainers.org/incus/docs/main/rest-api/.
resourcesandmetadatastay untyped (serde_json::Value) because their shape varies per operation kind; the well-known top-level fields are fully typed.
Enums§
- Operation
Class #[non_exhaustive]-equivalent: an unrecognizedclassvalue from a future Incus version becomesOther(<the raw string>)rather than failing deserialization outright (which is what a plain#[derive(Serialize, Deserialize)]enum would do here) - consistent withError’s own#[non_exhaustive]forward-compatibility stance.Serialize/Deserializeare implemented by hand rather than derived soOtherround-trips back to its original wire string exactly, instead of serializing as{"Other": "..."}.