pub struct PackageLog(/* private fields */);
Expand description
This is the log where installer actions are recorded, primarily the successful installation of packages within a package set.
This file is a SQLite3 file, each log entry is a row in the table installed
.
Implementations§
Source§impl PackageLog
impl PackageLog
Sourcepub fn log_installed_package(
&mut self,
package: &InstalledPackage,
) -> Result<()>
pub fn log_installed_package( &mut self, package: &InstalledPackage, ) -> Result<()>
Add this installed package to the log file. Currently this only logs successful execution of the associated package installer.
Sourcepub fn installed_package_history(
&mut self,
limit: u32,
) -> Result<Vec<InstalledPackage>>
pub fn installed_package_history( &mut self, limit: u32, ) -> Result<Vec<InstalledPackage>>
Return up to limit
number of rows from the installation history.
Trait Implementations§
Source§impl Debug for PackageLog
impl Debug for PackageLog
Source§impl FileSystemResource for PackageLog
impl FileSystemResource for PackageLog
Auto Trait Implementations§
impl !Freeze for PackageLog
impl !RefUnwindSafe for PackageLog
impl Send for PackageLog
impl !Sync for PackageLog
impl Unpin for PackageLog
impl !UnwindSafe for PackageLog
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