pub struct BatchingConfig {
pub max_batch_size: usize,
pub max_wait_time: Duration,
pub batched_methods: Vec<String>,
}Available on non-WebAssembly only.
Expand description
Configuration for message batching.
Fields§
§max_batch_size: usizeMaximum number of messages in a batch
max_wait_time: DurationMaximum time to wait before sending a batch
batched_methods: Vec<String>Methods to batch (empty means batch all)
Trait Implementations§
Source§impl Clone for BatchingConfig
impl Clone for BatchingConfig
Source§fn clone(&self) -> BatchingConfig
fn clone(&self) -> BatchingConfig
Returns a duplicate 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 BatchingConfig
impl Debug for BatchingConfig
Auto Trait Implementations§
impl Freeze for BatchingConfig
impl RefUnwindSafe for BatchingConfig
impl Send for BatchingConfig
impl Sync for BatchingConfig
impl Unpin for BatchingConfig
impl UnsafeUnpin for BatchingConfig
impl UnwindSafe for BatchingConfig
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