#[non_exhaustive]pub struct BatchingPolicy { /* private fields */ }Expand description
Batch formation policy: fixed-N and/or Δt micro-batching.
Implementations§
Source§impl BatchingPolicy
impl BatchingPolicy
Sourcepub const fn delta_t(cap: Ticks) -> Self
pub const fn delta_t(cap: Ticks) -> Self
Δt-bounded micro-batching (runtime may still emit batch < N if time cap hits).
Sourcepub const fn fixed_and_delta_t(n: usize, cap: Ticks) -> Self
pub const fn fixed_and_delta_t(n: usize, cap: Ticks) -> Self
Combined fixed-N and Δt caps.
Sourcepub const fn with_window(
n: Option<usize>,
cap: Option<Ticks>,
window_kind: WindowKind,
) -> Self
pub const fn with_window( n: Option<usize>, cap: Option<Ticks>, window_kind: WindowKind, ) -> Self
Combined fixed-N and Δt caps with explicit window kind (e.g., sliding).
Sourcepub const fn fixed_with_window(n: usize, window_kind: WindowKind) -> Self
pub const fn fixed_with_window(n: usize, window_kind: WindowKind) -> Self
Convenience: fixed-N with explicit window kind.
Sourcepub const fn delta_t_with_window(cap: Ticks, window_kind: WindowKind) -> Self
pub const fn delta_t_with_window(cap: Ticks, window_kind: WindowKind) -> Self
Convenience: delta-t with explicit window kind.
Sourcepub const fn max_delta_t(&self) -> &Option<Ticks>
pub const fn max_delta_t(&self) -> &Option<Ticks>
Borrow the delta-t cap (if any).
Sourcepub const fn window_kind(&self) -> WindowKind
pub const fn window_kind(&self) -> WindowKind
Return the window kind.
Trait Implementations§
Source§impl Clone for BatchingPolicy
impl Clone for BatchingPolicy
Source§fn clone(&self) -> BatchingPolicy
fn clone(&self) -> BatchingPolicy
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 BatchingPolicy
impl Debug for BatchingPolicy
Source§impl Default for BatchingPolicy
impl Default for BatchingPolicy
Source§impl PartialEq for BatchingPolicy
impl PartialEq for BatchingPolicy
impl Copy for BatchingPolicy
impl Eq for BatchingPolicy
impl StructuralPartialEq for BatchingPolicy
Auto Trait Implementations§
impl Freeze for BatchingPolicy
impl RefUnwindSafe for BatchingPolicy
impl Send for BatchingPolicy
impl Sync for BatchingPolicy
impl Unpin for BatchingPolicy
impl UnsafeUnpin for BatchingPolicy
impl UnwindSafe for BatchingPolicy
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