pub struct AckWaitError {
pub kind: AckWaitErrorKind,
pub needed: u32,
pub received: u32,
}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.
Error returned by ReplicaAckCoordinator::await_replica_acks when
the configured number of replica acks could not be obtained within
the supplied timeout.
Fields§
§kind: AckWaitErrorKindKind of failure (timeout / not master / shutdown).
needed: u32Number of acks required by the policy.
received: u32Number of acks actually received before the deadline.
Trait Implementations§
Source§impl Clone for AckWaitError
impl Clone for AckWaitError
Source§fn clone(&self) -> AckWaitError
fn clone(&self) -> AckWaitError
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 AckWaitError
impl Debug for AckWaitError
Source§impl Display for AckWaitError
impl Display for AckWaitError
Source§impl Error for AckWaitError
impl Error for AckWaitError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()