pub enum CommitStatus {
InProgress,
Committed,
Rejected,
Unknown,
}Expand description
Commit status of a log entry.
Variants§
InProgress
The log entry is currently being committed.
Committed
The log entry has been successfully committed.
Rejected
The log entry has been rejected.
Unknown
The log entry does not exist, typically due to removal by snapshotting.
It is unknown whether the entry was ever committed or rejected.
Implementations§
Source§impl CommitStatus
impl CommitStatus
Sourcepub const fn is_in_progress(self) -> bool
pub const fn is_in_progress(self) -> bool
Returns true if the status is InProgress.
Sourcepub const fn is_committed(self) -> bool
pub const fn is_committed(self) -> bool
Returns true if the status is Committed.
Sourcepub const fn is_rejected(self) -> bool
pub const fn is_rejected(self) -> bool
Returns true if the status is Rejected.
Sourcepub const fn is_unknown(self) -> bool
pub const fn is_unknown(self) -> bool
Returns true if the status is Unknown.
Trait Implementations§
Source§impl Clone for CommitStatus
impl Clone for CommitStatus
Source§fn clone(&self) -> CommitStatus
fn clone(&self) -> CommitStatus
Returns a duplicate of the value. Read more
1.0.0 · 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 CommitStatus
impl Debug for CommitStatus
Source§impl Hash for CommitStatus
impl Hash for CommitStatus
Source§impl PartialEq for CommitStatus
impl PartialEq for CommitStatus
impl Copy for CommitStatus
impl Eq for CommitStatus
impl StructuralPartialEq for CommitStatus
Auto Trait Implementations§
impl Freeze for CommitStatus
impl RefUnwindSafe for CommitStatus
impl Send for CommitStatus
impl Sync for CommitStatus
impl Unpin for CommitStatus
impl UnwindSafe for CommitStatus
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