pub enum MetadataSwap {
Stored(MetadataSnapshot),
Conflict(MetadataSnapshot),
}Expand description
A definite metadata conditional-write outcome. Transport errors can follow durable publication and must never be interpreted as definite rejection.
Variants§
Stored(MetadataSnapshot)
The proposed bytes were durably stored. The snapshot is exactly what was stored, carrying the new version token, so a caller can issue its next conditional write without rereading.
Conflict(MetadataSnapshot)
The observed version did not match; contains a bounded fresh observation.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MetadataSwap
impl !UnwindSafe for MetadataSwap
impl Forget for MetadataSwap
impl Freeze for MetadataSwap
impl Send for MetadataSwap
impl Sync for MetadataSwap
impl Unpin for MetadataSwap
impl UnsafeUnpin for MetadataSwap
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