Struct FirmwareProxy
pub struct FirmwareProxy<'p>(Proxy<'p>);Expand description
Client for the firmware features of a modem.
The interface lists and selects installed images. It does not install
firmware. The update_settings property tells how to update. The update
itself can run through the Linux Vendor Firmware Service and fwupd.
Upstream documentation: https://www.freedesktop.org/software/ModemManager/api/latest/gdbus-org.freedesktop.ModemManager1.Modem.Firmware.html.
Tuple Fields§
§0: Proxy<'p>Implementations§
§impl<'p> FirmwareProxy<'p>
impl<'p> FirmwareProxy<'p>
pub async fn new<P>(conn: &Connection, path: P) -> Result<FirmwareProxy<'p>>
pub async fn new<P>(conn: &Connection, path: P) -> Result<FirmwareProxy<'p>>
Creates a new proxy with the given path, and the default destination.
pub fn builder(conn: &Connection) -> Builder<'p, Self>
pub fn builder(conn: &Connection) -> Builder<'p, Self>
Returns a customizable builder for this proxy.
pub fn into_inner(self) -> Proxy<'p>
pub fn into_inner(self) -> Proxy<'p>
Consumes self, returning the underlying zbus::Proxy.
pub fn inner(&self) -> &Proxy<'p>
pub fn inner(&self) -> &Proxy<'p>
The reference to the underlying zbus::Proxy.
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
pub fn inner_mut(&mut self) -> &mut Proxy<'p>
The mutable reference to the underlying zbus::Proxy.
pub async fn list(&self) -> Result<(String, Vec<FirmwareImage>)>
pub async fn list(&self) -> Result<(String, Vec<FirmwareImage>)>
Lists the installed firmware images.
The first value is the unique ID of the selected image, or an empty string.
pub async fn select(&self, uniqueid: &str) -> Result<()>
pub async fn select(&self, uniqueid: &str) -> Result<()>
Selects an installed image and resets the modem to use it.
The call fails if no image has this ID.
pub async fn update_settings(
&self,
) -> Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)>
pub async fn update_settings( &self, ) -> Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)>
How to update the firmware.
The first value is the expected update methods. The second value has the details for the methods.
pub fn cached_update_settings(
&self,
) -> Result<Option<<Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Ok>, <Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Err>
pub fn cached_update_settings( &self, ) -> Result<Option<<Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Ok>, <Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Err>
How to update the firmware.
The first value is the expected update methods. The second value has
the details for the methods.
Get the cached value of the UpdateSettings property, or None if the property is not cached.
pub async fn receive_update_settings_changed(
&self,
) -> PropertyStream<'p, <Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Ok>
pub async fn receive_update_settings_changed( &self, ) -> PropertyStream<'p, <Result<(ModemFirmwareUpdateMethod, FirmwareUpdateSettings)> as ResultAdapter>::Ok>
How to update the firmware.
The first value is the expected update methods. The second value has
the details for the methods.
Create a stream for the UpdateSettings property changes. This is a convenient wrapper around [zbus::Proxy::receive_property_changed].
Trait Implementations§
§impl<'p> AsMut<Proxy<'p>> for FirmwareProxy<'p>
impl<'p> AsMut<Proxy<'p>> for FirmwareProxy<'p>
§impl<'p> AsRef<Proxy<'p>> for FirmwareProxy<'p>
impl<'p> AsRef<Proxy<'p>> for FirmwareProxy<'p>
§impl<'p> Clone for FirmwareProxy<'p>
impl<'p> Clone for FirmwareProxy<'p>
§fn clone(&self) -> FirmwareProxy<'p>
fn clone(&self) -> FirmwareProxy<'p>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more