pub enum BatchingStrategy {
Immediate,
Wave,
Threshold {
chunk_size: usize,
},
}
Expand description
A simple enum to govern how nodes are scheduled:
- Execute them as soon as they appear (immediate).
- Gather them by wave.
- Wave-based but chunk large waves into
chunk_size
.
Variants§
Trait Implementations§
Source§impl Clone for BatchingStrategy
impl Clone for BatchingStrategy
Source§fn clone(&self) -> BatchingStrategy
fn clone(&self) -> BatchingStrategy
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 BatchingStrategy
impl Debug for BatchingStrategy
Source§impl<'de> Deserialize<'de> for BatchingStrategy
impl<'de> Deserialize<'de> for BatchingStrategy
Source§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
Source§impl Serialize for BatchingStrategy
impl Serialize for BatchingStrategy
impl Copy for BatchingStrategy
Auto Trait Implementations§
impl Freeze for BatchingStrategy
impl RefUnwindSafe for BatchingStrategy
impl Send for BatchingStrategy
impl Sync for BatchingStrategy
impl Unpin for BatchingStrategy
impl UnwindSafe for BatchingStrategy
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