pub enum FlushTrigger {
Submission,
Deadline,
}Expand description
The event that caused the worker to reconsider flushing.
Variants§
Submission
A complete submission was appended to the batch.
Deadline
The flush timer reached its deadline.
Trait Implementations§
Source§impl Clone for FlushTrigger
impl Clone for FlushTrigger
Source§fn clone(&self) -> FlushTrigger
fn clone(&self) -> FlushTrigger
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FlushTrigger
Source§impl Debug for FlushTrigger
impl Debug for FlushTrigger
impl Eq for FlushTrigger
Source§impl PartialEq for FlushTrigger
impl PartialEq for FlushTrigger
Source§fn eq(&self, other: &FlushTrigger) -> bool
fn eq(&self, other: &FlushTrigger) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FlushTrigger
Auto Trait Implementations§
impl Freeze for FlushTrigger
impl RefUnwindSafe for FlushTrigger
impl Send for FlushTrigger
impl Sync for FlushTrigger
impl Unpin for FlushTrigger
impl UnsafeUnpin for FlushTrigger
impl UnwindSafe for FlushTrigger
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more