pub enum CompactionLeaseStatus {
Active {},
Reaping {},
}Expand description
Status of a compaction lease.
A job creates an active lease. Garbage collection may change an expired
lease to reaping by compare-and-swap. That update fences the job and is
permanent.
Variants§
Active
The job owns its output prefix. heartbeat_at_ms determines whether
the lease has expired.
The braces make serde reject a stray field; a unit variant would silently accept and discard one.
Reaping
Garbage collection owns the prefix and the job is fenced.
Trait Implementations§
Source§impl Clone for CompactionLeaseStatus
impl Clone for CompactionLeaseStatus
Source§fn clone(&self) -> CompactionLeaseStatus
fn clone(&self) -> CompactionLeaseStatus
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 moreimpl Copy for CompactionLeaseStatus
Source§impl Debug for CompactionLeaseStatus
impl Debug for CompactionLeaseStatus
Source§impl<'de> Deserialize<'de> for CompactionLeaseStatus
impl<'de> Deserialize<'de> for CompactionLeaseStatus
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
Source§impl Display for CompactionLeaseStatus
impl Display for CompactionLeaseStatus
impl Eq for CompactionLeaseStatus
Source§impl PartialEq for CompactionLeaseStatus
impl PartialEq for CompactionLeaseStatus
Source§impl Serialize for CompactionLeaseStatus
impl Serialize for CompactionLeaseStatus
impl StructuralPartialEq for CompactionLeaseStatus
Auto Trait Implementations§
impl Freeze for CompactionLeaseStatus
impl RefUnwindSafe for CompactionLeaseStatus
impl Send for CompactionLeaseStatus
impl Sync for CompactionLeaseStatus
impl Unpin for CompactionLeaseStatus
impl UnsafeUnpin for CompactionLeaseStatus
impl UnwindSafe for CompactionLeaseStatus
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