pub enum AvailabilityErrorV1 {
Busy {
retry_after_ms: u64,
},
RecoveryPending,
Standby,
LeaseRenewalFailed,
ReplicaCommitFailed,
AuthorityUnavailable,
TransportUnavailable,
AuthenticationFailed,
ProtocolMismatch,
}Expand description
Stable, payload-free rejection categories.
Variants§
Busy
Admission failed before business execution.
RecoveryPending
Recovery has not established a usable durable state.
Standby
This node is not the active writer.
LeaseRenewalFailed
Current writer authority could not be renewed or was lost.
ReplicaCommitFailed
Required replica confirmation was not obtained; execution may have committed.
The authority cannot currently be contacted.
The selected peer cannot currently be reached.
AuthenticationFailed
Credentials could not be authenticated.
ProtocolMismatch
The selected protocol or capability is incompatible.
Implementations§
Source§impl AvailabilityErrorV1
impl AvailabilityErrorV1
Sourcepub const fn is_valid(self) -> bool
pub const fn is_valid(self) -> bool
Rejects an untrusted delay outside the negotiated contract.
Sourcepub fn retry(self, attempt: u32, entropy: u64) -> AvailabilityRetryV1
pub fn retry(self, attempt: u32, entropy: u64) -> AvailabilityRetryV1
Pure bounded scheduling policy; caller supplies random entropy and an attempt count. Retry budgets, idempotency, persisted next-ready times and route circuit state belong to the caller. Never sleep under a queue, authority or application transaction lock.
Trait Implementations§
Source§impl Clone for AvailabilityErrorV1
impl Clone for AvailabilityErrorV1
Source§fn clone(&self) -> AvailabilityErrorV1
fn clone(&self) -> AvailabilityErrorV1
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more