Skip to main content

Module operations

Module operations 

Source
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/. resources and metadata stay untyped (serde_json::Value) because their shape varies per operation kind; the well-known top-level fields are fully typed.

Enums§

OperationClass
#[non_exhaustive]-equivalent: an unrecognized class value from a future Incus version becomes Other(<the raw string>) rather than failing deserialization outright (which is what a plain #[derive(Serialize, Deserialize)] enum would do here) - consistent with Error’s own #[non_exhaustive] forward-compatibility stance. Serialize/Deserialize are implemented by hand rather than derived so Other round-trips back to its original wire string exactly, instead of serializing as {"Other": "..."}.