pub enum WalFlushStepOutcome {
NotNeeded,
Flushed {
manifest_head_seq: ChangeSeq,
},
AlreadyPublished {
attempted_seq: ChangeSeq,
current_manifest_no: ManifestNo,
},
RetriesExhausted {
observed_head_seq: ChangeSeq,
},
}Expand description
What the WAL-flush part of a maintenance step did.
Variants§
NotNeeded
The tail was below the threshold, so there was nothing to flush.
Flushed
The step flushed the WAL tail and advanced the metadata root.
AlreadyPublished
The step did not update the root because it already referenced a different manifest.
Fields
§
current_manifest_no: ManifestNoManifest the root currently references.
RetriesExhausted
Concurrent updates prevented every attempt from publishing. Nothing was flushed, and a later step can try again.
Trait Implementations§
Source§impl Clone for WalFlushStepOutcome
impl Clone for WalFlushStepOutcome
Source§fn clone(&self) -> WalFlushStepOutcome
fn clone(&self) -> WalFlushStepOutcome
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 WalFlushStepOutcome
impl Debug for WalFlushStepOutcome
Source§impl<'de> Deserialize<'de> for WalFlushStepOutcome
impl<'de> Deserialize<'de> for WalFlushStepOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WalFlushStepOutcome
Source§impl PartialEq for WalFlushStepOutcome
impl PartialEq for WalFlushStepOutcome
Source§impl Serialize for WalFlushStepOutcome
impl Serialize for WalFlushStepOutcome
impl StructuralPartialEq for WalFlushStepOutcome
Auto Trait Implementations§
impl Freeze for WalFlushStepOutcome
impl RefUnwindSafe for WalFlushStepOutcome
impl Send for WalFlushStepOutcome
impl Sync for WalFlushStepOutcome
impl Unpin for WalFlushStepOutcome
impl UnsafeUnpin for WalFlushStepOutcome
impl UnwindSafe for WalFlushStepOutcome
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