pub struct ReplicationStatus {
pub put_id: String,
pub acked_by: usize,
pub quorum_met: bool,
pub elapsed: Duration,
}Expand description
Result of a successful put_quorum request.
Reports how many peers acked, whether the policy was satisfied, and
how long the request took to resolve. Returned in the Ok arm of
put_quorum’s Result.
Fields§
§put_id: StringThe id of the originating Put (matches Put.id).
acked_by: usizeNumber of peer acks observed before quorum was satisfied.
quorum_met: boolWhether the quorum threshold was met.
Always true when returned in the Ok arm of put_quorum —
included for symmetry with future APIs that may report partial
replication status.
elapsed: DurationWall-clock duration between put submission and quorum satisfaction.
Trait Implementations§
Source§impl Clone for ReplicationStatus
impl Clone for ReplicationStatus
Source§fn clone(&self) -> ReplicationStatus
fn clone(&self) -> ReplicationStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReplicationStatus
impl RefUnwindSafe for ReplicationStatus
impl Send for ReplicationStatus
impl Sync for ReplicationStatus
impl Unpin for ReplicationStatus
impl UnsafeUnpin for ReplicationStatus
impl UnwindSafe for ReplicationStatus
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