pub struct ReplicationStatusEntry {
pub status: ReplicationStatus,
pub generation: u64,
}Expand description
Per-(source_bucket, source_key) replication status entry, paired with the generation token of the source PUT that produced it.
§v0.8.2 #61 — generation token
Each put_object (or complete_multipart_upload) on a source key
pulls a fresh, monotonically-increasing generation from the
manager. The detached replication task carries that generation and
only stamps the status when its generation is >= the stored one
(CAS-style). A stale retry whose generation has been overtaken by a
newer PUT is silently dropped, so the destination bucket never gets
rolled back to older bytes. See ReplicationManager::next_generation
Fields§
§status: ReplicationStatus§generation: u64Trait Implementations§
Source§impl Clone for ReplicationStatusEntry
impl Clone for ReplicationStatusEntry
Source§fn clone(&self) -> ReplicationStatusEntry
fn clone(&self) -> ReplicationStatusEntry
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 moreSource§impl Debug for ReplicationStatusEntry
impl Debug for ReplicationStatusEntry
Source§impl<'de> Deserialize<'de> for ReplicationStatusEntry
impl<'de> Deserialize<'de> for ReplicationStatusEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ReplicationStatusEntry
impl PartialEq for ReplicationStatusEntry
Source§fn eq(&self, other: &ReplicationStatusEntry) -> bool
fn eq(&self, other: &ReplicationStatusEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReplicationStatusEntry
impl Serialize for ReplicationStatusEntry
impl Eq for ReplicationStatusEntry
impl StructuralPartialEq for ReplicationStatusEntry
Auto Trait Implementations§
impl Freeze for ReplicationStatusEntry
impl RefUnwindSafe for ReplicationStatusEntry
impl Send for ReplicationStatusEntry
impl Sync for ReplicationStatusEntry
impl Unpin for ReplicationStatusEntry
impl UnsafeUnpin for ReplicationStatusEntry
impl UnwindSafe for ReplicationStatusEntry
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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§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
Compare self to
key and return true if they are equal.