Struct ashpd::flatpak::UpdateMonitorProxy
source · [−]pub struct UpdateMonitorProxy<'a>(_);
Expand description
The interface exposes some interactions with Flatpak on the host to the sandbox. For example, it allows you to restart the applications or start a more sandboxed instance.
Wrapper of the DBus interface: org.freedesktop.portal.Flatpak.UpdateMonitor
.
Implementations
sourceimpl<'a> UpdateMonitorProxy<'a>
impl<'a> UpdateMonitorProxy<'a>
sourcepub async fn receive_progress(&self) -> Result<UpdateProgress, Error>
pub async fn receive_progress(&self) -> Result<UpdateProgress, Error>
A signal received when there’s progress during the application update.
Specifications
See also Progress
.
sourcepub async fn receive_update_available(&self) -> Result<UpdateInfo, Error>
pub async fn receive_update_available(&self) -> Result<UpdateInfo, Error>
sourcepub async fn update(&self, identifier: &WindowIdentifier) -> Result<(), Error>
pub async fn update(&self, identifier: &WindowIdentifier) -> Result<(), Error>
Asks to install an update of the calling app.
Note updates are only allowed if the new version has the same permissions (or less) than the currently installed version.
Specifications
See also Update
.
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for UpdateMonitorProxy<'a>
impl<'a> Send for UpdateMonitorProxy<'a>
impl<'a> Sync for UpdateMonitorProxy<'a>
impl<'a> Unpin for UpdateMonitorProxy<'a>
impl<'a> !UnwindSafe for UpdateMonitorProxy<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more