pub struct RollbackManager<'a> { /* private fields */ }Implementations§
Source§impl<'a> RollbackManager<'a>
impl<'a> RollbackManager<'a>
pub fn rollback_file_path(paths: &UpstreamPaths) -> PathBuf
pub fn new( paths: &'a UpstreamPaths, package_storage: &'a mut PackageStorage, metadata_storage: &'a mut MetadataStorage, rollback_storage: &'a mut RollbackStorage, ) -> Self
pub fn capture_from_installed<H>( &mut self, package: &Package, source: RollbackSource, message_callback: &mut Option<H>, ) -> Result<()>
pub fn capture_backup_path<H>( paths: &UpstreamPaths, rollback_storage: &mut RollbackStorage, package: &Package, backup_path: &Path, source: RollbackSource, message_callback: &mut Option<H>, ) -> Result<()>
pub fn restore_package<H>( &mut self, package_name: &str, message_callback: &mut Option<H>, ) -> Result<()>
pub fn prune_package(&mut self, package_name: &str) -> Result<bool>
pub fn rollback_packages(&self) -> Vec<String>
pub fn rollback_record(&self, package_name: &str) -> Option<&RollbackRecord>
pub fn estimate_restore_impact(&self, package_name: &str) -> Option<DiskImpact>
pub fn estimate_prune_impact(&self, package_name: &str) -> Option<DiskImpact>
Auto Trait Implementations§
impl<'a> !UnwindSafe for RollbackManager<'a>
impl<'a> Freeze for RollbackManager<'a>
impl<'a> RefUnwindSafe for RollbackManager<'a>
impl<'a> Send for RollbackManager<'a>
impl<'a> Sync for RollbackManager<'a>
impl<'a> Unpin for RollbackManager<'a>
impl<'a> UnsafeUnpin for RollbackManager<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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 more