Skip to main content

Crate remora_rauc

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ยง

artifact ๐Ÿ”’
bundle ๐Ÿ”’
installer ๐Ÿ”’
slot ๐Ÿ”’

Structsยง

Artifact
An artifact in a repository.
ArtifactInstance
One installed version of an artifact.
ArtifactRepository
An artifact repository, as returned by GetArtifactStatus.
BundleInfo
The manifest of a bundle, as returned by InspectBundle.
BundleSection
The [bundle] section of a manifest.
Completed
A Completed signal.
CompletedArgs
Completed signal arguments.
CompletedStream
A Stream implementation that yields Completed signals.
HandlerInfo
The [handler] section of a manifest.
HooksInfo
The [hooks] section of a manifest.
ImageInfo
An image entry of a manifest.
InspectArgs
Options for InspectBundle.
InstallArgs
Options for InstallBundle.
InstallerProxy
Client for the de.pengutronix.rauc.Installer interface of RAUC.
Progress
Installation progress, as in the Progress property.
SlotStatus
The status of one slot, as returned by GetSlotStatus.
UpdateInfo
The [update] section of a manifest.

Enumsยง

AdaptiveMethod
An adaptive update method, as in the adaptive key of an image entry.
BootStatus
The boot status of a slot, as in the boot-status key.
BundleFormat
The format of a bundle, as in the format key of the bundle section.
BundleHook
A hook of a bundle, as in the hooks key of the hooks section.
ImageHook
A hook of an image, as in the hooks key of an image entry.
InstallStatus
The result of the latest update of a slot, as in the status key.
MarkState
The state that Mark sets on a slot.
Operation
The global operation that RAUC performs.
RepositoryType
The type of an artifact repository.
SlotIdentifier
Selects the slot that Mark changes.
SlotState
The state of a slot, as in the state key of the slot status.
SlotType
The type of a slot, as in the type key of the slot status.