pub struct RollbackManager { /* private fields */ }Expand description
롤백 관리자
Implementations§
Source§impl RollbackManager
impl RollbackManager
Sourcepub fn with_checkpoint_dir(self, dir: PathBuf) -> Self
pub fn with_checkpoint_dir(self, dir: PathBuf) -> Self
체크포인트 디렉토리 설정
Sourcepub fn with_auto_rollback(self, enabled: bool) -> Self
pub fn with_auto_rollback(self, enabled: bool) -> Self
자동 롤백 활성화
Sourcepub fn create_checkpoint(
&self,
id: String,
description: String,
) -> DbxResult<Checkpoint>
pub fn create_checkpoint( &self, id: String, description: String, ) -> DbxResult<Checkpoint>
체크포인트 생성
Sourcepub fn rollback_to_checkpoint(&self, id: &str) -> DbxResult<Checkpoint>
pub fn rollback_to_checkpoint(&self, id: &str) -> DbxResult<Checkpoint>
체크포인트로 롤백
Sourcepub fn get_checkpoint(&self, id: &str) -> Option<Checkpoint>
pub fn get_checkpoint(&self, id: &str) -> Option<Checkpoint>
체크포인트 조회
Sourcepub fn list_checkpoints(&self) -> Vec<Checkpoint>
pub fn list_checkpoints(&self) -> Vec<Checkpoint>
모든 체크포인트 조회
Sourcepub fn delete_checkpoint(&self, id: &str) -> DbxResult<()>
pub fn delete_checkpoint(&self, id: &str) -> DbxResult<()>
체크포인트 삭제
Sourcepub fn trigger_auto_rollback(&self, reason: &str) -> DbxResult<()>
pub fn trigger_auto_rollback(&self, reason: &str) -> DbxResult<()>
자동 롤백 트리거
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RollbackManager
impl RefUnwindSafe for RollbackManager
impl Send for RollbackManager
impl Sync for RollbackManager
impl Unpin for RollbackManager
impl UnsafeUnpin 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
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