pub struct GuardedBatchRefusal {
pub entry_index: usize,
pub missing: MissingEndpoints,
}Expand description
Which batch entry a guarded batch write refused on, and why, determined inside the same in-transaction pre-check that aborted the batch.
Fields§
§entry_index: usizeIndex of the first batch entry whose endpoint(s) were missing.
missing: MissingEndpointsImplementations§
Source§impl GuardedBatchRefusal
impl GuardedBatchRefusal
Sourcepub fn record_failure(
&self,
summary: &mut BatchWriteSummary,
index: usize,
edge: &Edge,
first_error: &str,
)
pub fn record_failure( &self, summary: &mut BatchWriteSummary, index: usize, edge: &Edge, first_error: &str, )
Record one original batch entry using the same classification and
diagnostic as GuardedBatchOutcome::refusal_page. Siblings are aborted,
not independently diagnosed as having missing endpoints.
Trait Implementations§
Source§impl Clone for GuardedBatchRefusal
impl Clone for GuardedBatchRefusal
Source§impl Debug for GuardedBatchRefusal
impl Debug for GuardedBatchRefusal
impl Eq for GuardedBatchRefusal
Source§impl PartialEq for GuardedBatchRefusal
impl PartialEq for GuardedBatchRefusal
impl StructuralPartialEq for GuardedBatchRefusal
Auto Trait Implementations§
impl Freeze for GuardedBatchRefusal
impl RefUnwindSafe for GuardedBatchRefusal
impl Send for GuardedBatchRefusal
impl Sync for GuardedBatchRefusal
impl Unpin for GuardedBatchRefusal
impl UnsafeUnpin for GuardedBatchRefusal
impl UnwindSafe for GuardedBatchRefusal
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