pub enum AppendStatus {
Show 16 variants
PutOk,
FlushDiskTimeout,
FlushReplicaTimeout,
ReplicaUnavailable,
ServiceUnavailable,
StorageUnavailable,
InvalidMessage,
PropertiesTooLarge,
PageCacheBusy,
Unknown,
InsufficientReplicas,
RemoteAppendFailed,
QueueLimitExceeded,
ScheduleFlowControl,
ScheduleMessageIllegal,
ScheduleDisabled,
}Expand description
Backend-neutral outcome of a legacy-compatible append attempt.
Variants§
PutOk
Represents the put ok case.
FlushDiskTimeout
Represents the flush disk timeout case.
FlushReplicaTimeout
Represents the flush replica timeout case.
Represents the replica unavailable case.
Represents the service unavailable case.
Represents the storage unavailable case.
InvalidMessage
Represents the invalid message case.
PropertiesTooLarge
Represents the properties too large case.
PageCacheBusy
Represents the page cache busy case.
Unknown
Represents the unknown case.
InsufficientReplicas
Represents the insufficient replicas case.
RemoteAppendFailed
Represents the remote append failed case.
QueueLimitExceeded
Represents the queue limit exceeded case.
ScheduleFlowControl
Represents the schedule flow control case.
ScheduleMessageIllegal
Represents the schedule message illegal case.
ScheduleDisabled
Represents the schedule disabled case.
Implementations§
Source§impl AppendStatus
impl AppendStatus
Sourcepub const fn is_accepted(self) -> bool
pub const fn is_accepted(self) -> bool
Returns whether the primary log accepted the append.
Trait Implementations§
Source§impl Clone for AppendStatus
impl Clone for AppendStatus
impl Copy for AppendStatus
Source§impl Debug for AppendStatus
impl Debug for AppendStatus
Source§impl Default for AppendStatus
impl Default for AppendStatus
impl Eq for AppendStatus
Source§impl Hash for AppendStatus
impl Hash for AppendStatus
Source§impl PartialEq for AppendStatus
impl PartialEq for AppendStatus
impl StructuralPartialEq for AppendStatus
Auto Trait Implementations§
impl Freeze for AppendStatus
impl RefUnwindSafe for AppendStatus
impl Send for AppendStatus
impl Sync for AppendStatus
impl Unpin for AppendStatus
impl UnsafeUnpin for AppendStatus
impl UnwindSafe for AppendStatus
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