pub enum VersionIdentityCapability {
Unknown,
Adopts,
MintsOwn,
}Expand description
Whether a replication target adopts the source version id it is handed on PutObject / CompleteMultipartUpload, or mints its own.
A target that mints its own ids (AWS S3, Wasabi, Impossible Cloud) still
stores the bytes, but every later version-addressed request from the
source names an id the target never had. Its HEAD then answers 404 —
indistinguishable from a replica that is really missing — so a heal, MRF
retry or existing-object resync re-drive would PUT the object again and
mint yet another target version (rustfs/backlog#2340). The replication
worker learns the verdict from each PUT response (and replication-check’s
VersionFidelity phase) and, once MintsOwn is known, locates a replica by
exact key and ETag before concluding that it is missing. The verdict cache
is owned by the runtime’s bucket target system; this crate owns only the
vocabulary and the judgment.
Variants§
Implementations§
Source§impl VersionIdentityCapability
impl VersionIdentityCapability
Sourcepub fn version_addressing_unreliable(self) -> bool
pub fn version_addressing_unreliable(self) -> bool
True when a 404 from a version-addressed HEAD on this target cannot be read as “replica missing”: the source-side id was never the target’s.
Trait Implementations§
Source§impl Clone for VersionIdentityCapability
impl Clone for VersionIdentityCapability
impl Copy for VersionIdentityCapability
Source§impl Debug for VersionIdentityCapability
impl Debug for VersionIdentityCapability
Source§impl Default for VersionIdentityCapability
impl Default for VersionIdentityCapability
impl Eq for VersionIdentityCapability
impl StructuralPartialEq for VersionIdentityCapability
Auto Trait Implementations§
impl Freeze for VersionIdentityCapability
impl RefUnwindSafe for VersionIdentityCapability
impl Send for VersionIdentityCapability
impl Sync for VersionIdentityCapability
impl Unpin for VersionIdentityCapability
impl UnsafeUnpin for VersionIdentityCapability
impl UnwindSafe for VersionIdentityCapability
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§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.