pub enum ChangePhase {
Recovered,
Recorded,
Assembling,
Written,
Lost,
Updated,
Completed,
}Expand description
Phase of a multi-step storage change.
Variants§
Recovered
The change was recovered from changelog and the phase is unknown.
Recorded
The change is recorded in the log and LT upload has started.
Assembling
The LT blob originated from a multipart upload and is being assembled.
Multipart upload completion can fail, and we want the client to be able to retry it without the change cleanup process racing to delete the LT blob. Therefore, cleanup of changes in this phase is deferred.
Written
LT upload has succeeded and the tombstone is being updated.
Lost
The tombstone update failed due to a conflict.
Updated
The tombstone update succeeded.
Completed
Cleanup complete.
Implementations§
Source§impl ChangePhase
impl ChangePhase
Sourcepub fn compare_and_write(succeeded: bool) -> Self
pub fn compare_and_write(succeeded: bool) -> Self
Returns the phase corresponding to the outcome of a compare-and-write operation.
Trait Implementations§
Source§impl Debug for ChangePhase
impl Debug for ChangePhase
Source§impl PartialEq for ChangePhase
impl PartialEq for ChangePhase
impl StructuralPartialEq for ChangePhase
Auto Trait Implementations§
impl Freeze for ChangePhase
impl RefUnwindSafe for ChangePhase
impl Send for ChangePhase
impl Sync for ChangePhase
impl Unpin for ChangePhase
impl UnsafeUnpin for ChangePhase
impl UnwindSafe for ChangePhase
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].