Debian Codegraph @

src/depcache.rs

raw symbols SCIP
1 //! Dependency Extension data for the cache.
2 //!
3 //! The following was taken from libapt-pkg documentation.
4 //!
5 //! This class stores the cache data and a set of extension structures for
6 //! monitoring the current state of all the packages. It also generates and
7 //! caches the 'install' state of many things. This refers to the state of the
8 //! package after an install has been run.
9 //!
10 //! The StateCache::State field can be -1,0,1,2 which is <,=,>,no current.
11 //! StateCache::Mode is which of the 3 fields is active.
12 //!
13 //! This structure is important to support the readonly status of the cache
14 //! file. When the data is saved the cache will be refreshed from our
15 //! internal rep and written to disk. Then the actual persistent data
16 //! files will be put on the disk.
17 //!
18 //! Each dependency is compared against 3 target versions to produce to
19 //! 3 dependency results.
20 //! Now - Compared using the Currently install version
21 //! Install - Compared using the install version (final state)
22 //! CVer - (Candidate Version) Compared using the Candidate Version
23 //! The candidate and now results are used to decide whether a package
24 //! should be automatically installed or if it should be left alone.
25 //!
26 //! Remember, the Candidate Version is selected based on the distribution
27 //! settings for the Package. The Install Version is selected based on the
28 //! state (Delete, Keep, Install) field and can be either the Current Version
29 //! or the Candidate version.
30 //!
31 //! The Candidate version is what is shown the 'Install Version' field.
32
33 use cxxrust-analyzer cargo cxx 1.0.199 crate/::UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#;
34
35 use craterust-analyzer cargo rust-apt 0.8.0 crate/::errorrust-analyzer cargo rust-apt 0.8.0 error/::AptErrorsrust-analyzer cargo rust-apt 0.8.0 error/AptErrors#;
36 use craterust-analyzer cargo rust-apt 0.8.0 crate/::progressrust-analyzer cargo rust-apt 0.8.0 progress/::OperationProgressrust-analyzer cargo rust-apt 0.8.0 progress/OperationProgress#;
37 use craterust-analyzer cargo rust-apt 0.8.0 crate/::rawrust-analyzer cargo rust-apt 0.8.0 raw/::PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#;
38 use craterust-analyzer cargo rust-apt 0.8.0 crate/::utilrust-analyzer cargo rust-apt 0.8.0 util/::DiskSpacerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace#;
39
40 /// Dependency Extension data for the cache.
41 pub struct DepCacherust-analyzer cargo rust-apt 0.8.0 depcache/DepCache# {
42 pub(craterust-analyzer cargo rust-apt 0.8.0 crate/) ptrrust-analyzer cargo rust-apt 0.8.0 depcache/DepCache#ptr.: UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#>,
43 }
44
45 impl DepCacherust-analyzer cargo rust-apt 0.8.0 depcache/DepCache# {
46 pub fn newrust-analyzer cargo rust-apt 0.8.0 depcache/impl#[DepCache]new().(ptr: UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#>) -> DepCacherust-analyzer cargo rust-apt 0.8.0 depcache/DepCache# { DepCacherust-analyzer cargo rust-apt 0.8.0 depcache/DepCache# { ptrrust-analyzer cargo rust-apt 0.8.0 depcache/DepCache#ptr. } }
47
48 /// Clear any marked changes in the DepCache.
49 pub fn clear_markedrust-analyzer cargo rust-apt 0.8.0 depcache/impl#[DepCache]clear_marked().(&self) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<(), AptErrorsrust-analyzer cargo rust-apt 0.8.0 error/AptErrors#> {
50 Okrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#Ok#(self.initrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]init().(OperationProgressrust-analyzer cargo rust-apt 0.8.0 progress/OperationProgress#::quietrust-analyzer cargo rust-apt 0.8.0 progress/impl#[`OperationProgress<'a>`]quiet().().pinrust-analyzer cargo rust-apt 0.8.0 progress/impl#[`OperationProgress<'a>`]pin().().as_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/impl#[`Pin<Ptr>`]as_mut().())?rust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`][Try]branch().)
51 }
52
53 /// The amount of space required for installing/removing the packages."
54 ///
55 /// i.e. the Installed-Size of all packages marked for installation"
56 /// minus the Installed-Size of all packages for removal."
57 pub fn disk_sizerust-analyzer cargo rust-apt 0.8.0 depcache/impl#[DepCache]disk_size().(&self) -> DiskSpacerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace# {
58 let size = self.ptrrust-analyzer cargo rust-apt 0.8.0 depcache/DepCache#ptr..disk_sizerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]disk_size().();
59 if size rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt().<rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/impls/impl#[i64][`PartialOrd<Self>`]lt().0 {
60 return DiskSpacerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace#::Freerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace#Free#(-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[i64][Neg]neg().size as u64);
61 }
62 DiskSpacerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace#::Requirerust-analyzer cargo rust-apt 0.8.0 util/DiskSpace#Require#(size as u64)
63 }
64 }
65
66 #[cxxrust-analyzer cargo cxx 1.0.199 crate/::bridgerust-analyzer cargo cxxbridge-macro 1.0.199 bridge:]
67 pub(craterust-analyzer cargo rust-apt 0.8.0 crate/) mod rawrust-analyzer cargo rust-apt 0.8.0 depcache/raw/ {
68 impl UniquePtr<PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#> {}
69 unsafe extern "C++" {
70 includerust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/include!!("rust-apt/apt-pkg-c/depcache.h");
71
72 type PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#;
73 /// An action group is a group of actions that are currently being
74 /// performed.
75 ///
76 /// While an active group is active, certain routine
77 /// clean-up actions that would normally be performed after every
78 /// cache operation are delayed until the action group is
79 /// completed. This is necessary primarily to avoid inefficiencies
80 /// when modifying a large number of packages at once.
81 ///
82 /// This struct represents an active action group. Creating an
83 /// instance will create an action group; destroying one will
84 /// destroy the corresponding action group.
85 ///
86 /// The following operations are suppressed by this class:
87 ///
88 /// - Keeping the Marked and Garbage flags up to date.
89 ///
90 /// Here is an example of creating and releasing an ActionGroup.
91 ///
92 /// ```
93 /// use rust_apt::new_cache;
94 ///
95 /// let cache = new_cache!().unwrap();
96 /// let mut action_group = unsafe { cache.depcache().action_group() };
97 ///
98 /// // The C++ deconstructor will be run when the action group leaves scope.
99 /// // You can also call it explicitly.
100 /// action_group.pin_mut().release();
101 /// ```
102 type ActionGrouprust-analyzer cargo rust-apt 0.8.0 depcache/raw/ActionGroup#;
103 type PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator# = craterust-analyzer cargo rust-apt 0.8.0 crate/::iteratorsrust-analyzer cargo rust-apt 0.8.0 iterators/::PkgIteratorrust-analyzer cargo rust-apt 0.8.0 iterators/package/raw/PkgIterator#;
104 type VerIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/VerIterator# = craterust-analyzer cargo rust-apt 0.8.0 crate/::iteratorsrust-analyzer cargo rust-apt 0.8.0 iterators/::VerIteratorrust-analyzer cargo rust-apt 0.8.0 iterators/version/raw/VerIterator#;
105 type DepIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/DepIterator# = craterust-analyzer cargo rust-apt 0.8.0 crate/::iteratorsrust-analyzer cargo rust-apt 0.8.0 iterators/::DepIteratorrust-analyzer cargo rust-apt 0.8.0 iterators/dependency/raw/DepIterator#;
106 type OperationProgressrust-analyzer cargo rust-apt 0.8.0 depcache/raw/OperationProgress#<'a> = craterust-analyzer cargo rust-apt 0.8.0 crate/::progressrust-analyzer cargo rust-apt 0.8.0 progress/::OperationProgressrust-analyzer cargo rust-apt 0.8.0 progress/OperationProgress#<'a>;
107
108 /// Clear any marked changes in the DepCache.
109 pub fn initrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]init().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, callback: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut OperationProgressrust-analyzer cargo rust-apt 0.8.0 depcache/raw/OperationProgress#>) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<()>;
110
111 /// Autoinstall every broken package and run the problem resolver
112 /// Returns false if the problem resolver fails.
113 pub fn fix_brokenrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]fix_broken().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> bool;
114 /// Return a new [`ActionGroup`] of the current DepCache
115 ///
116 /// ActionGroup will be released once it leaves scope
117 /// or ['ActionGroup::release'] is called
118 ///
119 /// # Safety
120 ///
121 /// The returned UniquePtr cannot outlive the cache.
122 unsafe fn action_grouprust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]action_group().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<ActionGrouprust-analyzer cargo rust-apt 0.8.0 depcache/raw/ActionGroup#>;
123
124 /// This will release the [`ActionGroup`] which will trigger a
125 /// MarkAndSweep
126 pub fn releaserust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[ActionGroup]release().(self: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut ActionGrouprust-analyzer cargo rust-apt 0.8.0 depcache/raw/ActionGroup#>);
127
128 /// Perform an Upgrade.
129 ///
130 /// ## mark_auto:
131 /// * [0] = Remove and install new packages if necessary.
132 /// * [1] = New packages will be installed but nothing will be
133 /// removed.
134 /// * [3] = Neither remove or install new packages.
135 pub fn upgraderust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]upgrade().(
136 self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#,
137 progress: Pinrust-analyzer cargo core https://github.com/rust-lang/rust/library/core pin/Pin#<&mut OperationProgressrust-analyzer cargo rust-apt 0.8.0 depcache/raw/OperationProgress#>,
138 upgrade_mode: i32,
139 ) -> Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/Result#<()>;
140
141 /// Check if the package is upgradable.
142 pub fn is_upgradablerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_upgradable().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
143
144 /// Is the Package auto installed? Packages marked as auto installed are
145 /// usually dependencies.
146 pub fn is_auto_installedrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_auto_installed().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
147
148 /// Is the Package able to be auto removed?
149 pub fn is_garbagerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_garbage().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
150
151 /// Is the Package marked for install?
152 pub fn marked_installrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_install().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
153
154 /// Is the Package marked for upgrade?
155 pub fn marked_upgraderust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_upgrade().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
156
157 /// Is the Package marked to be purged?
158 pub fn marked_purgerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_purge().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
159
160 /// Is the Package marked for removal?
161 pub fn marked_deleterust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_delete().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
162
163 /// Is the Package marked for keep?
164 pub fn marked_keeprust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_keep().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
165
166 /// Is the Package marked for downgrade?
167 pub fn marked_downgraderust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_downgrade().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
168
169 /// Is the Package marked for reinstall?
170 pub fn marked_reinstallrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]marked_reinstall().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
171
172 /// # Mark a package as automatically installed.
173 ///
174 /// ## mark_auto:
175 /// * [true] = Mark the package as automatically installed.
176 /// * [false] = Mark the package as manually installed.
177 pub fn mark_autorust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]mark_auto().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#, mark_auto: bool);
178
179 /// # Mark a package for keep.
180 ///
181 /// ## Returns:
182 /// * [true] if the mark was successful
183 /// * [false] if the mark was unsuccessful
184 ///
185 /// This means that the package will not be changed from its current
186 /// version. This will not stop a reinstall, but will stop removal,
187 /// upgrades and downgrades
188 ///
189 /// We don't believe that there is any reason to unmark packages for
190 /// keep. If someone has a reason, and would like it implemented, please
191 /// put in a feature request.
192 pub fn mark_keeprust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]mark_keep().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
193
194 /// # Mark a package for removal.
195 ///
196 /// ## Returns:
197 /// * [true] if the mark was successful
198 /// * [false] if the mark was unsuccessful
199 ///
200 /// ## purge:
201 /// * [true] = Configuration files will be removed along with the
202 /// package.
203 /// * [false] = Only the package will be removed.
204 pub fn mark_deleterust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]mark_delete().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#, purge: bool) -> bool;
205
206 /// # Mark a package for installation.
207 ///
208 /// ## auto_inst:
209 /// * [true] = Additionally mark the dependencies for this package.
210 /// * [false] = Mark only this package.
211 ///
212 /// ## from_user:
213 /// * [true] = The package will be marked manually installed.
214 /// * [false] = The package will be unmarked automatically installed.
215 ///
216 /// ## Returns:
217 /// * [true] if the mark was successful
218 /// * [false] if the mark was unsuccessful
219 ///
220 /// If a package is already installed, at the latest version,
221 /// and you mark that package for install you will get true,
222 /// but the package will not be altered.
223 /// `pkg.marked_install()` will be false
224 pub fn mark_installrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]mark_install().(
225 self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#,
226 pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#,
227 auto_inst: bool,
228 from_user: bool,
229 ) -> bool;
230
231 /// Set a version to be the candidate of it's package.
232 pub fn set_candidate_versionrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]set_candidate_version().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, ver: &VerIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/VerIterator#);
233
234 /// Get a pointer to the version that is set to be installed.
235 ///
236 /// # Safety
237 ///
238 /// If there is no candidate the inner pointer will be null.
239 /// This will cause segfaults if methods are used on a Null Version.
240 ///
241 /// Using [`crate::raw::IntoRawIter::make_safe`] to convert to an Option
242 /// is recommended.
243 ///
244 /// The returned UniquePtr cannot outlive the cache.
245 unsafe fn candidate_versionrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]candidate_version().(
246 self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#,
247 pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#,
248 ) -> UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<VerIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/VerIterator#>;
249
250 /// Get a pointer to the version that is installed.
251 ///
252 /// # Safety
253 ///
254 /// If there is no version the inner pointer will be null.
255 /// This will cause segfaults if methods are used on a Null Version.
256 ///
257 /// Using [`crate::raw::IntoRawIter::make_safe`] to convert to an Option
258 /// is recommended.
259 ///
260 /// The returned UniquePtr cannot outlive the cache.
261 unsafe fn install_versionrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]install_version().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> UniquePtrrust-analyzer cargo cxx 1.0.199 unique_ptr/UniquePtr#<VerIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/VerIterator#>;
262
263 /// Returns the state of the dependency as u8
264 pub fn dep_staterust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]dep_state().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, dep: &DepIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/DepIterator#) -> u8;
265
266 /// Checks if the dependency is important.
267 ///
268 /// Depends, PreDepends, Conflicts, Obsoletes, Breaks
269 /// will return [true].
270 ///
271 /// Suggests, Recommends will return [true] if they are
272 /// configured to be installed.
273 pub fn is_important_deprust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_important_dep().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, dep: &DepIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/DepIterator#) -> bool;
274
275 /// # Mark a package for reinstallation.
276 ///
277 /// ## Returns:
278 /// * [true] if the mark was successful
279 /// * [false] if the mark was unsuccessful
280 ///
281 /// ## reinstall:
282 /// * [true] = The package will be marked for reinstall.
283 /// * [false] = The package will be unmarked for reinstall.
284 pub fn mark_reinstallrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]mark_reinstall().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#, reinstall: bool);
285
286 /// Is the installed Package broken?
287 pub fn is_now_brokenrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_now_broken().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
288
289 /// Is the Package to be installed broken?
290 pub fn is_inst_brokenrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]is_inst_broken().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#, pkg: &PkgIteratorrust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgIterator#) -> bool;
291
292 /// The number of packages marked for installation.
293 pub fn install_countrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]install_count().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> u32;
294
295 /// The number of packages marked for removal.
296 pub fn delete_countrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]delete_count().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> u32;
297
298 /// The number of packages marked for keep.
299 pub fn keep_countrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]keep_count().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> u32;
300
301 /// The number of packages with broken dependencies in the cache.
302 pub fn broken_countrust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]broken_count().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> u32;
303
304 /// The size of all packages to be downloaded.
305 pub fn download_sizerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]download_size().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> u64;
306
307 /// The amount of space required for installing/removing the packages,"
308 ///
309 /// i.e. the Installed-Size of all packages marked for installation"
310 /// minus the Installed-Size of all packages for removal."
311 pub fn disk_sizerust-analyzer cargo rust-apt 0.8.0 depcache/raw/impl#[PkgDepCache]disk_size().(self: &PkgDepCacherust-analyzer cargo rust-apt 0.8.0 depcache/raw/PkgDepCache#) -> i64;
312 }
313 }