Crate remora_rauc
Expand description
D-Bus client for the RAUC update service.
The crate has an async proxy for the de.pengutronix.rauc.Installer
interface. Use InstallerProxy with a connection to the system bus.
let connection = zbus::Connection::system().await?;
let proxy = remora_rauc::InstallerProxy::new(&connection).await?;
println!("{}", proxy.boot_slot().await?);ยงVersions
The crate covers RAUC 1.15.2. Members without a version note exist in RAUC 1.0 and later. Other members say in which release they appeared. Calls to a member that the running service lacks fail with a D-Bus error.
The dictionaries that RAUC returns, such as the slot status, get new keys
in newer releases. Older services leave them out. All fields of these
structs are Option values for this case.
Upstream documentation: https://rauc.readthedocs.io/en/latest/reference.html#d-bus-api.
Re-exportsยง
pub use zbus;
Modulesยง
Structsยง
- Artifact
- An artifact in a repository.
- Artifact
Instance - One installed version of an artifact.
- Artifact
Repository - An artifact repository, as returned by
GetArtifactStatus. - Bundle
Info - The manifest of a bundle, as returned by
InspectBundle. - Bundle
Section - The
[bundle]section of a manifest. - Completed
- A
Completedsignal. - Completed
Args Completedsignal arguments.- Completed
Stream - A
Streamimplementation that yieldsCompletedsignals. - Handler
Info - The
[handler]section of a manifest. - Hooks
Info - The
[hooks]section of a manifest. - Image
Info - An image entry of a manifest.
- Inspect
Args - Options for
InspectBundle. - Install
Args - Options for
InstallBundle. - Installer
Proxy - Client for the
de.pengutronix.rauc.Installerinterface of RAUC. - Progress
- Installation progress, as in the
Progressproperty. - Slot
Status - The status of one slot, as returned by
GetSlotStatus. - Update
Info - The
[update]section of a manifest.
Enumsยง
- Adaptive
Method - An adaptive update method, as in the
adaptivekey of an image entry. - Boot
Status - The boot status of a slot, as in the
boot-statuskey. - Bundle
Format - The format of a bundle, as in the
formatkey of the bundle section. - Bundle
Hook - A hook of a bundle, as in the
hookskey of the hooks section. - Image
Hook - A hook of an image, as in the
hookskey of an image entry. - Install
Status - The result of the latest update of a slot, as in the
statuskey. - Mark
State - The state that
Marksets on a slot. - Operation
- The global operation that RAUC performs.
- Repository
Type - The type of an artifact repository.
- Slot
Identifier - Selects the slot that
Markchanges. - Slot
State - The state of a slot, as in the
statekey of the slot status. - Slot
Type - The type of a slot, as in the
typekey of the slot status.