pub struct BatchSpec {
pub plan: PlanIR,
pub source: Arc<dyn ItemSource>,
pub page: usize,
pub max_items: Option<u64>,
}Expand description
How a batch is to be run.
Fields§
§plan: PlanIRThe plan every item runs. Frozen once, for the whole batch: a batch whose plan could change between items would be several acts wearing one name, and its audit record would say nothing about what actually happened to item 60,000.
source: Arc<dyn ItemSource>§page: usizeItems fetched per call to the source.
A paging hint, not a limit on the batch. See BatchSpec::page.
max_items: Option<u64>Stop after this many items reach a terminal outcome, if set.
For operating a very large batch in windows — “settle ten thousand and
let me look”. The batch stays Running; the next call resumes.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BatchSpec
impl !UnwindSafe for BatchSpec
impl Freeze for BatchSpec
impl Send for BatchSpec
impl Sync for BatchSpec
impl Unpin for BatchSpec
impl UnsafeUnpin for BatchSpec
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.