pub struct UpdateService { /* private fields */ }
Expand description
Implementation of the VS Code Update service for use in the CLI.
Implementations§
Source§impl UpdateService
impl UpdateService
pub fn new(log: Logger, http: BoxedHttp) -> Self
pub async fn get_release_by_semver_version( &self, platform: Platform, target: TargetKind, quality: Quality, version: &str, ) -> Result<Release, AnyError>
Sourcepub async fn get_latest_commit(
&self,
platform: Platform,
target: TargetKind,
quality: Quality,
) -> Result<Release, AnyError>
pub async fn get_latest_commit( &self, platform: Platform, target: TargetKind, quality: Quality, ) -> Result<Release, AnyError>
Gets the latest commit for the target of the given quality.
Sourcepub async fn get_download_stream(
&self,
release: &Release,
) -> Result<SimpleResponse, AnyError>
pub async fn get_download_stream( &self, release: &Release, ) -> Result<SimpleResponse, AnyError>
Gets the download stream for the release.
Trait Implementations§
Source§impl Clone for UpdateService
impl Clone for UpdateService
Source§fn clone(&self) -> UpdateService
fn clone(&self) -> UpdateService
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for UpdateService
impl !RefUnwindSafe for UpdateService
impl Send for UpdateService
impl Sync for UpdateService
impl Unpin for UpdateService
impl !UnwindSafe for UpdateService
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