pub enum AckWaitErrorKind {
Timeout,
NotMaster,
Shutdown,
}Expand description
Re-exports of noxu-dbi types that appear in public API signatures.
Environment::set_replica_coordinator takes a
SharedReplicaAckCoordinator; users implementing a custom
ReplicaAckCoordinator for testing need ReplicaAckCoordinator and
AckWaitError/AckWaitErrorKind without depending on the internal
noxu-dbi crate directly. All are reachable as noxu::Type through
the umbrella crate.
Closes re-audit JE F-6 and the partial fix noted in reaudit-jonhoo #3. Reason an ack-wait did not satisfy the durability contract.
Variants§
Timeout
ack_timeout elapsed before enough replicas acknowledged the
commit. The commit is durably written locally but does not meet
the configured replication policy.
NotMaster
Commit was attempted on a replica node, which is not permitted.
Shutdown
The replicated environment is shutting down and cannot wait for acks.
Trait Implementations§
Source§impl Clone for AckWaitErrorKind
impl Clone for AckWaitErrorKind
Source§fn clone(&self) -> AckWaitErrorKind
fn clone(&self) -> AckWaitErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AckWaitErrorKind
impl Debug for AckWaitErrorKind
impl Eq for AckWaitErrorKind
Source§impl PartialEq for AckWaitErrorKind
impl PartialEq for AckWaitErrorKind
Source§fn eq(&self, other: &AckWaitErrorKind) -> bool
fn eq(&self, other: &AckWaitErrorKind) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AckWaitErrorKind
Auto Trait Implementations§
impl Freeze for AckWaitErrorKind
impl RefUnwindSafe for AckWaitErrorKind
impl Send for AckWaitErrorKind
impl Sync for AckWaitErrorKind
impl Unpin for AckWaitErrorKind
impl UnsafeUnpin for AckWaitErrorKind
impl UnwindSafe for AckWaitErrorKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.