pub struct CheckpointActionResult {
pub reverted_commands: usize,
pub restored: usize,
pub deleted: usize,
pub supported: bool,
pub message: String,
}Expand description
Result returned by checkpoint undo/redo operations.
When supported is false, the executor does not implement checkpoints; callers
should surface an appropriate user-facing message without treating this as an error.
Fields§
§reverted_commands: usizeNumber of commands actually reverted or re-applied.
restored: usizeNumber of files restored (written from backup).
deleted: usizeNumber of files deleted (were absent at capture time).
supported: boolfalse when this executor does not support checkpoints.
message: StringHuman-readable summary of what happened.
Implementations§
Source§impl CheckpointActionResult
impl CheckpointActionResult
Sourcepub fn unsupported() -> Self
pub fn unsupported() -> Self
Sentinel returned by executors that do not implement checkpoints.
Trait Implementations§
Source§impl Clone for CheckpointActionResult
impl Clone for CheckpointActionResult
Source§fn clone(&self) -> CheckpointActionResult
fn clone(&self) -> CheckpointActionResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CheckpointActionResult
impl Debug for CheckpointActionResult
Source§impl Default for CheckpointActionResult
impl Default for CheckpointActionResult
Source§fn default() -> CheckpointActionResult
fn default() -> CheckpointActionResult
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CheckpointActionResult
impl RefUnwindSafe for CheckpointActionResult
impl Send for CheckpointActionResult
impl Sync for CheckpointActionResult
impl Unpin for CheckpointActionResult
impl UnsafeUnpin for CheckpointActionResult
impl UnwindSafe for CheckpointActionResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request