pub struct WriteBatch { /* private fields */ }Expand description
A batch of operations destined for one target.
M1 single-doc ingest produces a one-operation batch; the same type carries a
demultiplexed per-target slice of a _bulk request in M3 (docs/04 §3).
Implementations§
Source§impl WriteBatch
impl WriteBatch
Sourcepub fn with_trace(self, trace: Option<&TraceContext>) -> Self
pub fn with_trace(self, trace: Option<&TraceContext>) -> Self
Tags every operation in the batch with the same downstream trace context (builder style), so all upstream requests for this batch propagate it.
Sourcepub fn with_forward_headers(self, headers: &[(String, String)]) -> Self
pub fn with_forward_headers(self, headers: &[(String, String)]) -> Self
Tags every operation in the batch with the same forwarded client headers (builder style), so all upstream requests for this batch relay them.
Trait Implementations§
Source§impl Clone for WriteBatch
impl Clone for WriteBatch
Source§fn clone(&self) -> WriteBatch
fn clone(&self) -> WriteBatch
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteBatch
impl Debug for WriteBatch
Source§impl Default for WriteBatch
impl Default for WriteBatch
Source§fn default() -> WriteBatch
fn default() -> WriteBatch
Returns the “default value” for a type. Read more
impl Eq for WriteBatch
Source§impl PartialEq for WriteBatch
impl PartialEq for WriteBatch
Source§fn eq(&self, other: &WriteBatch) -> bool
fn eq(&self, other: &WriteBatch) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WriteBatch
Auto Trait Implementations§
impl Freeze for WriteBatch
impl RefUnwindSafe for WriteBatch
impl Send for WriteBatch
impl Sync for WriteBatch
impl Unpin for WriteBatch
impl UnsafeUnpin for WriteBatch
impl UnwindSafe for WriteBatch
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> 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
Compare self to
key and return true if they are equal.