pub struct BatcherBuilder { /* private fields */ }Expand description
A builder for a Batcher
Implementations§
Source§impl BatcherBuilder
impl BatcherBuilder
Sourcepub fn batch_size(self, batch_size: usize) -> Self
pub fn batch_size(self, batch_size: usize) -> Self
Set the batch size
Sourcepub fn with_batch_size(&mut self, batch_size: usize) -> &mut Self
pub fn with_batch_size(&mut self, batch_size: usize) -> &mut Self
Set the batch size
Sourcepub fn with_delay(&mut self, delay: Duration) -> &mut Self
pub fn with_delay(&mut self, delay: Duration) -> &mut Self
Set the delay
Trait Implementations§
Source§impl Clone for BatcherBuilder
impl Clone for BatcherBuilder
Source§fn clone(&self) -> BatcherBuilder
fn clone(&self) -> BatcherBuilder
Returns a copy of the value. Read more
1.0.0 · 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 BatcherBuilder
impl Debug for BatcherBuilder
Source§impl Default for BatcherBuilder
impl Default for BatcherBuilder
impl Copy for BatcherBuilder
Auto Trait Implementations§
impl Freeze for BatcherBuilder
impl RefUnwindSafe for BatcherBuilder
impl Send for BatcherBuilder
impl Sync for BatcherBuilder
impl Unpin for BatcherBuilder
impl UnwindSafe for BatcherBuilder
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