pub enum ReadbackOutcome {
OurWrite(VersionInfo),
NotOurs,
MissingVersion,
}Expand description
OurWrite is universally success; the rest are mapped per-caller.
Variants§
OurWrite(VersionInfo)
NotOurs
The landed object isn’t (provably) ours: a different write-id, no write-id, or no object at all. All map identically per-caller.
MissingVersion
Our id matched but the object has no usable version identity.
Implementations§
Source§impl ReadbackOutcome
impl ReadbackOutcome
Sourcepub fn classify(
our: &str,
stored_write_id: Option<&str>,
version: &VersionInfo,
) -> ReadbackOutcome
pub fn classify( our: &str, stored_write_id: Option<&str>, version: &VersionInfo, ) -> ReadbackOutcome
Classify a successful read-back of a found object. A failed read-back is
inconclusive and never reaches here — the backend returns the HEAD error
instead; an absent object is conclusively NotOurs at the backend.
Trait Implementations§
Source§impl Debug for ReadbackOutcome
impl Debug for ReadbackOutcome
impl Eq for ReadbackOutcome
Source§impl PartialEq for ReadbackOutcome
impl PartialEq for ReadbackOutcome
impl StructuralPartialEq for ReadbackOutcome
Auto Trait Implementations§
impl Freeze for ReadbackOutcome
impl RefUnwindSafe for ReadbackOutcome
impl Send for ReadbackOutcome
impl Sync for ReadbackOutcome
impl Unpin for ReadbackOutcome
impl UnsafeUnpin for ReadbackOutcome
impl UnwindSafe for ReadbackOutcome
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more