pub struct GitHubAppUpdater { /* private fields */ }Expand description
Discovers releases through a repository’s public GitHub release feed.
AppUpdater::check starts the request on a thread of its own and
returns immediately; the outcome arrives later through
set_app_update_status — the same fire-and-forget contract Android’s
JNI-backed updater uses, so an application observing update status cannot
tell which platform answered it.
Implementations§
Source§impl GitHubAppUpdater
impl GitHubAppUpdater
Sourcepub fn new() -> Self
pub fn new() -> Self
An updater over the framework’s default_http_client.
Sourcepub fn with_client(client: HttpClientRef) -> Self
pub fn with_client(client: HttpClientRef) -> Self
An updater over a specific client — the seam a test replaces with a
crate::http::StubHttpClient, and the one an application uses to
supply a client of its own. A client the caller built is one the
caller can send with.
Trait Implementations§
Source§impl AppUpdater for GitHubAppUpdater
impl AppUpdater for GitHubAppUpdater
Source§fn capabilities(&self) -> AppUpdateCapabilities
fn capabilities(&self) -> AppUpdateCapabilities
What this backend can do. Read more
Source§fn check(&self, source: &GitHubReleaseUpdate) -> Result<(), AppUpdateError>
fn check(&self, source: &GitHubReleaseUpdate) -> Result<(), AppUpdateError>
Starts release discovery. Progress is published through
set_app_update_status.Source§fn install(&self, package: &UpdatePackage) -> Result<(), AppUpdateError>
fn install(&self, package: &UpdatePackage) -> Result<(), AppUpdateError>
Transfers a package to the platform installer. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for GitHubAppUpdater
impl !UnwindSafe for GitHubAppUpdater
impl Freeze for GitHubAppUpdater
impl Send for GitHubAppUpdater
impl Sync for GitHubAppUpdater
impl Unpin for GitHubAppUpdater
impl UnsafeUnpin for GitHubAppUpdater
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more