Struct tauri::updater::UpdateResponse
source · pub struct UpdateResponse<R: Runtime> { /* private fields */ }
Available on crate feature
updater
only.Expand description
The response of an updater check.
Implementations§
source§impl<R: Runtime> UpdateResponse<R>
impl<R: Runtime> UpdateResponse<R>
sourcepub fn is_update_available(&self) -> bool
pub fn is_update_available(&self) -> bool
Whether the updater found a newer release or not.
sourcepub fn current_version(&self) -> &Version
pub fn current_version(&self) -> &Version
The current version of the application as read by the updater.
sourcepub fn latest_version(&self) -> &str
pub fn latest_version(&self) -> &str
The latest version of the application found by the updater.
sourcepub fn date(&self) -> Option<&OffsetDateTime>
pub fn date(&self) -> Option<&OffsetDateTime>
The update date.
sourcepub async fn download_and_install(self) -> Result<()>
pub async fn download_and_install(self) -> Result<()>
Downloads and installs the update.