pub enum SnapshotLifecycleMode {
SnapshotOnly,
StopBeforeSnapshot,
ResumeAfterSnapshot,
StopAndResume,
}Expand description
SnapshotLifecycleMode
Variants§
Implementations§
Source§impl SnapshotLifecycleMode
impl SnapshotLifecycleMode
Sourcepub const fn from_flags(
stop_before_snapshot: bool,
resume_after_snapshot: bool,
) -> Self
pub const fn from_flags( stop_before_snapshot: bool, resume_after_snapshot: bool, ) -> Self
Build the lifecycle mode from CLI stop/resume flags.
Sourcepub const fn stop_before_snapshot(self) -> bool
pub const fn stop_before_snapshot(self) -> bool
Return whether the CLI should stop before snapshot creation.
Sourcepub const fn resume_after_snapshot(self) -> bool
pub const fn resume_after_snapshot(self) -> bool
Return whether the CLI should start after snapshot capture.
Trait Implementations§
Source§impl Clone for SnapshotLifecycleMode
impl Clone for SnapshotLifecycleMode
Source§fn clone(&self) -> SnapshotLifecycleMode
fn clone(&self) -> SnapshotLifecycleMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SnapshotLifecycleMode
impl Debug for SnapshotLifecycleMode
Source§impl PartialEq for SnapshotLifecycleMode
impl PartialEq for SnapshotLifecycleMode
impl Copy for SnapshotLifecycleMode
impl Eq for SnapshotLifecycleMode
impl StructuralPartialEq for SnapshotLifecycleMode
Auto Trait Implementations§
impl Freeze for SnapshotLifecycleMode
impl RefUnwindSafe for SnapshotLifecycleMode
impl Send for SnapshotLifecycleMode
impl Sync for SnapshotLifecycleMode
impl Unpin for SnapshotLifecycleMode
impl UnsafeUnpin for SnapshotLifecycleMode
impl UnwindSafe for SnapshotLifecycleMode
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