pub struct BatchLimits { /* private fields */ }Expand description
Limits for batching AppendRecords.
Implementations§
Source§impl BatchLimits
impl BatchLimits
Sourcepub fn new() -> Self
pub fn new() -> Self
Create new BatchLimits with default settings.
Sourcepub fn with_max_batch_bytes(
self,
max_batch_bytes: usize,
) -> Result<Self, ValidationError>
pub fn with_max_batch_bytes( self, max_batch_bytes: usize, ) -> Result<Self, ValidationError>
Set the maximum metered bytes per batch.
Note: It must be at least 8B and must not exceed 1MiB.
Defaults to 1MiB.
Sourcepub fn with_max_batch_records(
self,
max_batch_records: usize,
) -> Result<Self, ValidationError>
pub fn with_max_batch_records( self, max_batch_records: usize, ) -> Result<Self, ValidationError>
Set the maximum number of records per batch.
Note: It must be at least 1 and must not exceed 1000.
Defaults to 1000.
Trait Implementations§
Source§impl Clone for BatchLimits
impl Clone for BatchLimits
Source§fn clone(&self) -> BatchLimits
fn clone(&self) -> BatchLimits
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 BatchLimits
impl Debug for BatchLimits
Auto Trait Implementations§
impl Freeze for BatchLimits
impl RefUnwindSafe for BatchLimits
impl Send for BatchLimits
impl Sync for BatchLimits
impl Unpin for BatchLimits
impl UnsafeUnpin for BatchLimits
impl UnwindSafe for BatchLimits
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<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