pub struct UpdateService { /* private fields */ }Expand description
Update service for checking and applying updates
Implementations§
Source§impl UpdateService
impl UpdateService
Sourcepub fn new(resolver: Arc<PackageResolver>, lock: SkillsLock) -> Self
pub fn new(resolver: Arc<PackageResolver>, lock: SkillsLock) -> Self
Create a new update service
Sourcepub fn check_updates(
&self,
skill_id: Option<&str>,
strategy: UpdateStrategy,
) -> Result<Vec<UpdateInfo>, UpdateError>
pub fn check_updates( &self, skill_id: Option<&str>, strategy: UpdateStrategy, ) -> Result<Vec<UpdateInfo>, UpdateError>
Check for available updates
Sourcepub fn resolve_updates(
&self,
skill_ids: &[String],
strategy: UpdateStrategy,
) -> Result<Vec<UpdateInfo>, UpdateError>
pub fn resolve_updates( &self, skill_ids: &[String], strategy: UpdateStrategy, ) -> Result<Vec<UpdateInfo>, UpdateError>
Resolve updates for multiple skills
Auto Trait Implementations§
impl Freeze for UpdateService
impl !RefUnwindSafe for UpdateService
impl Send for UpdateService
impl Sync for UpdateService
impl Unpin for UpdateService
impl UnsafeUnpin 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.