Struct server_forge::rollback::RollbackManager
source · pub struct RollbackManager { /* private fields */ }
Expand description
Manages the creation of snapshots and rollback operations.
Implementations§
source§impl RollbackManager
impl RollbackManager
sourcepub fn add_file_change(
&self,
snapshot_id: usize,
file_path: &str,
) -> Result<(), Box<dyn Error>>
pub fn add_file_change( &self, snapshot_id: usize, file_path: &str, ) -> Result<(), Box<dyn Error>>
sourcepub fn add_package_installed(
&self,
snapshot_id: usize,
package: &str,
) -> Result<(), Box<dyn Error>>
pub fn add_package_installed( &self, snapshot_id: usize, package: &str, ) -> Result<(), Box<dyn Error>>
sourcepub fn commit_snapshot(&self, _snapshot_id: usize) -> Result<(), Box<dyn Error>>
pub fn commit_snapshot(&self, _snapshot_id: usize) -> Result<(), Box<dyn Error>>
Commits a snapshot, finalizing its state.
This method is a placeholder and currently does nothing. It could be expanded to compress the snapshot or write it to disk.
§Arguments
_snapshot_id
- The ID of the snapshot to commit
Auto Trait Implementations§
impl !Freeze for RollbackManager
impl !RefUnwindSafe for RollbackManager
impl Send for RollbackManager
impl !Sync for RollbackManager
impl Unpin for RollbackManager
impl UnwindSafe for RollbackManager
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