pub struct ApplyWritesIncomplete {
pub landed: usize,
pub in_doubt: usize,
pub total: usize,
/* private fields */
}Expand description
How far a chunked applyWrites got before a chunk failed — carried by the
error from every client’s apply_writes, and so from flush_read_states
and add_subscriptions_bulk.
Read it with ApplyWritesIncomplete::of. In terms of the caller’s own
input, in order:
writes[..landed]were committed (each chunk was acknowledged);writes[landed..landed + in_doubt]were the failed call — usually not committed, but a timeout or a lost response cannot rule it out;- everything after was never sent.
Display is the underlying failure’s message, with the progress appended
when the batch had more than one chunk, so a log line still names the
PDS’s reason. The failure’s own causes stay reachable through
anyhow::Error::chain.
Fields§
§landed: usizeWrites committed, counted from the start of the input.
in_doubt: usizeWrites in the failed call, starting at landed.
total: usizeWrites in the whole batch.
Implementations§
Trait Implementations§
Source§impl Debug for ApplyWritesIncomplete
impl Debug for ApplyWritesIncomplete
Source§impl Display for ApplyWritesIncomplete
impl Display for ApplyWritesIncomplete
Source§impl Error for ApplyWritesIncomplete
impl Error for ApplyWritesIncomplete
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ApplyWritesIncomplete
impl RefUnwindSafe for ApplyWritesIncomplete
impl Send for ApplyWritesIncomplete
impl Sync for ApplyWritesIncomplete
impl Unpin for ApplyWritesIncomplete
impl UnsafeUnpin for ApplyWritesIncomplete
impl UnwindSafe for ApplyWritesIncomplete
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
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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