pub enum CompletionCondition {
Size(usize),
Predicate(Arc<dyn Fn(&[Exchange]) -> bool + Send + Sync>),
}Expand description
When the bucket is considered complete and should be emitted.
Variants§
Size(usize)
Emit when bucket reaches exactly N exchanges.
Predicate(Arc<dyn Fn(&[Exchange]) -> bool + Send + Sync>)
Emit when predicate returns true for current bucket.
Trait Implementations§
Source§impl Clone for CompletionCondition
impl Clone for CompletionCondition
Source§fn clone(&self) -> CompletionCondition
fn clone(&self) -> CompletionCondition
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 moreAuto Trait Implementations§
impl Freeze for CompletionCondition
impl !RefUnwindSafe for CompletionCondition
impl Send for CompletionCondition
impl Sync for CompletionCondition
impl Unpin for CompletionCondition
impl UnsafeUnpin for CompletionCondition
impl !UnwindSafe for CompletionCondition
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