Struct fwupd_dbus::Client [−][src]
pub struct Client { pub client_name: String, // some fields omitted }
A DBus client for interacting with the fwupd daemon.
Fields
client_name: String
Implementations
impl Client
[src]
impl Client
[src]pub fn new() -> Result<Self, Error>
[src]
pub fn activate<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]
pub fn activate<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]Activate a firmware update on the device.
pub fn clear_results<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]
pub fn clear_results<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]Clears the results of an offline update.
pub fn details<H: IntoRawFd>(
&self,
handle: H
) -> Result<Vec<HashMap<String, DynVariant>>, Error>
[src]
pub fn details<H: IntoRawFd>(
&self,
handle: H
) -> Result<Vec<HashMap<String, DynVariant>>, Error>
[src]Gets details about a local firmware file.
pub fn devices(&self) -> Result<Vec<Device>, Error>
[src]
pub fn devices(&self) -> Result<Vec<Device>, Error>
[src]Gets a list of all the devices that are supported.
pub fn downgrades<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]
pub fn downgrades<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]Get a list of all the downgrades possible for a specific device.
pub fn fetch_firmware_from_release<C: FnMut(FlashEvent)>(
&self,
device: &Device,
release: &Release,
callback: Option<C>
) -> Result<(PathBuf, Option<File>), Error>
[src]
pub fn fetch_firmware_from_release<C: FnMut(FlashEvent)>(
&self,
device: &Device,
release: &Release,
callback: Option<C>
) -> Result<(PathBuf, Option<File>), Error>
[src]Fetches firmware from a remote and caches it for later use.
Firmware will only be fetched if it has not already been cached, or the cached firmware has an invalid checksum.
pub fn update_device_with_release<F: FnMut(FlashEvent)>(
&self,
device: &Device,
release: &Release,
flags: InstallFlags,
callback: Option<F>
) -> Result<(), Error>
[src]
pub fn update_device_with_release<F: FnMut(FlashEvent)>(
&self,
device: &Device,
release: &Release,
flags: InstallFlags,
callback: Option<F>
) -> Result<(), Error>
[src]Update firmware for a Device
with the firmware specified in a Release
.
pub fn history<H: IntoRawFd>(&self, handle: H) -> Result<Vec<Device>, Error>
[src]
pub fn history<H: IntoRawFd>(&self, handle: H) -> Result<Vec<Device>, Error>
[src]Gets a list of all the past firmware updates.
pub fn install<D: AsRef<DeviceId>, H: IntoRawFd>(
&self,
id: D,
reason: &str,
filename: &Path,
handle: Option<H>,
flags: InstallFlags
) -> Result<(), Error>
[src]
pub fn install<D: AsRef<DeviceId>, H: IntoRawFd>(
&self,
id: D,
reason: &str,
filename: &Path,
handle: Option<H>,
flags: InstallFlags
) -> Result<(), Error>
[src]Schedules a firmware to be installed.
pub fn listen_signals<'a>(
&'a self,
cancellable: Arc<AtomicBool>
) -> impl Iterator<Item = Signal> + 'a
[src]
pub fn listen_signals<'a>(
&'a self,
cancellable: Arc<AtomicBool>
) -> impl Iterator<Item = Signal> + 'a
[src]Listens for signals from the DBus daemon.
pub fn modify_device<D: AsRef<DeviceId>>(
&self,
device_id: D,
key: &str,
value: &str
) -> Result<(), Error>
[src]
pub fn modify_device<D: AsRef<DeviceId>>(
&self,
device_id: D,
key: &str,
value: &str
) -> Result<(), Error>
[src]Modifies a device in some way.
pub fn modify_remote<R: AsRef<RemoteId>>(
&self,
remote_id: R,
key: &str,
value: &str
) -> Result<(), Error>
[src]
pub fn modify_remote<R: AsRef<RemoteId>>(
&self,
remote_id: R,
key: &str,
value: &str
) -> Result<(), Error>
[src]Modifies a remote in some way.
pub fn percentage(&self) -> Result<u8, Error>
[src]
pub fn percentage(&self) -> Result<u8, Error>
[src]The job percentage completion, or 0 for unknown.
pub fn ping(&self) -> Result<(), Error>
[src]
pub fn releases<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]
pub fn releases<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]Gets a list of all the releases for a specific device.
pub fn remote<D: AsRef<RemoteId>>(&self, id: D) -> Result<Remote, Error>
[src]
pub fn remote<D: AsRef<RemoteId>>(&self, id: D) -> Result<Remote, Error>
[src]Find the remote with the given ID.
pub fn results<D: AsRef<DeviceId>>(
&self,
id: D
) -> Result<Option<Device>, Error>
[src]
pub fn results<D: AsRef<DeviceId>>(
&self,
id: D
) -> Result<Option<Device>, Error>
[src]Gets the results of an offline update.
pub fn tainted(&self) -> Result<bool, Error>
[src]
pub fn tainted(&self) -> Result<bool, Error>
[src]If the daemon has been tainted with a third party plugin.
pub fn unlock<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]
pub fn unlock<D: AsRef<DeviceId>>(&self, id: D) -> Result<(), Error>
[src]Unlock the device to allow firmware access.
pub fn update_metadata<D: IntoRawFd, S: IntoRawFd, R: AsRef<RemoteId>>(
&self,
remote_id: R,
data: D,
signature: S
) -> Result<(), Error>
[src]
pub fn update_metadata<D: IntoRawFd, S: IntoRawFd, R: AsRef<RemoteId>>(
&self,
remote_id: R,
data: D,
signature: S
) -> Result<(), Error>
[src]Adds AppStream resource information from a session client.
pub fn upgrades<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]
pub fn upgrades<D: AsRef<DeviceId>>(
&self,
device_id: D
) -> Result<Vec<Release>, Error>
[src]Get a list of all the upgrades possible for a specific device.