pub struct CheckUpdates { /* private fields */ }Implementations§
Source§impl CheckUpdates
impl CheckUpdates
pub fn new(root: Option<PathBuf>) -> Self
pub fn with_options(root: Option<PathBuf>, options: Options) -> Self
pub fn packages(&self) -> Result<Packages, Error>
Sourcepub fn update_versions<'a>(
&self,
packages: impl IntoIterator<Item = (&'a Usage, &'a Package, VersionReq)>,
) -> Result<(), Error>
pub fn update_versions<'a>( &self, packages: impl IntoIterator<Item = (&'a Usage, &'a Package, VersionReq)>, ) -> Result<(), Error>
Update the locally installed versions of the given packages to the one specified
Auto Trait Implementations§
impl Freeze for CheckUpdates
impl !RefUnwindSafe for CheckUpdates
impl !Send for CheckUpdates
impl !Sync for CheckUpdates
impl Unpin for CheckUpdates
impl UnsafeUnpin for CheckUpdates
impl !UnwindSafe for CheckUpdates
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