Struct Batch
pub struct Batch {
pub max_events: u32,
pub max_wait_ms: u64,
pub dedup_ms: u64,
}Expand description
When a batch of events starts its run.
Fields§
§max_events: u32The run starts as soon as the batch holds this many events.
max_wait_ms: u64… or this long after the batch’s first event.
dedup_ms: u64How long the key remembers event IDs after its last event.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for Batch
impl<'de> Deserialize<'de> for Batch
§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Batch
impl StructuralPartialEq for Batch
Auto Trait Implementations§
impl Freeze for Batch
impl RefUnwindSafe for Batch
impl Send for Batch
impl Sync for Batch
impl Unpin for Batch
impl UnsafeUnpin for Batch
impl UnwindSafe for Batch
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