pub enum ActiveWalMetadataStatus {
MissingForEmptyWal,
ValidForEmptyWal {
ref_name: String,
},
InvalidForEmptyWal {
reason: String,
},
ValidForNonEmptyWal {
ref_name: String,
},
MissingForNonEmptyWal,
InvalidForNonEmptyWal {
reason: String,
},
}Expand description
Active-WAL ref metadata status derived during repository verification.
Variants§
MissingForEmptyWal
Empty active WAL and no metadata.
ValidForEmptyWal
Empty active WAL with stale but valid local metadata.
InvalidForEmptyWal
Empty active WAL with malformed local metadata.
ValidForNonEmptyWal
Non-empty active WAL with valid ownership metadata.
MissingForNonEmptyWal
Non-empty active WAL missing required ownership metadata.
InvalidForNonEmptyWal
Non-empty active WAL with malformed ownership metadata.
Implementations§
Source§impl ActiveWalMetadataStatus
impl ActiveWalMetadataStatus
Sourcepub const fn has_integrity_issue(&self) -> bool
pub const fn has_integrity_issue(&self) -> bool
Return true when the status represents a repository-integrity issue.
Sourcepub const fn has_local_debris_warning(&self) -> bool
pub const fn has_local_debris_warning(&self) -> bool
Return true when the status represents local debris on an otherwise empty active WAL.
Trait Implementations§
Source§impl Clone for ActiveWalMetadataStatus
impl Clone for ActiveWalMetadataStatus
Source§fn clone(&self) -> ActiveWalMetadataStatus
fn clone(&self) -> ActiveWalMetadataStatus
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 ActiveWalMetadataStatus
impl Debug for ActiveWalMetadataStatus
impl Eq for ActiveWalMetadataStatus
Source§impl PartialEq for ActiveWalMetadataStatus
impl PartialEq for ActiveWalMetadataStatus
impl StructuralPartialEq for ActiveWalMetadataStatus
Auto Trait Implementations§
impl Freeze for ActiveWalMetadataStatus
impl RefUnwindSafe for ActiveWalMetadataStatus
impl Send for ActiveWalMetadataStatus
impl Sync for ActiveWalMetadataStatus
impl Unpin for ActiveWalMetadataStatus
impl UnsafeUnpin for ActiveWalMetadataStatus
impl UnwindSafe for ActiveWalMetadataStatus
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