pub struct BatchDecision {
pub lanes: usize,
pub item_threads: usize,
pub vendor_batch: bool,
}Expand description
The route batch_decision selected.
§Examples
use tcontract_exec::batch::BatchDecision;
let d = BatchDecision { lanes: 2, item_threads: 1, vendor_batch: false };
assert_eq!(d.lanes * d.item_threads, 2);Fields§
§lanes: usizeOuter lanes; each lane runs a contiguous share of the items.
item_threads: usizeThreads one item may use. 1 for a route that runs items serially inside
each lane; a BatchStrategy::Split asks for both lanes and item threads,
and a route that cannot run item threads inside lanes refuses it.
vendor_batch: boolWhether the whole batch goes to one vendor call.
Trait Implementations§
Source§impl Clone for BatchDecision
impl Clone for BatchDecision
impl Copy for BatchDecision
Source§impl Debug for BatchDecision
impl Debug for BatchDecision
impl Eq for BatchDecision
Source§impl PartialEq for BatchDecision
impl PartialEq for BatchDecision
impl StructuralPartialEq for BatchDecision
Auto Trait Implementations§
impl Freeze for BatchDecision
impl RefUnwindSafe for BatchDecision
impl Send for BatchDecision
impl Sync for BatchDecision
impl Unpin for BatchDecision
impl UnsafeUnpin for BatchDecision
impl UnwindSafe for BatchDecision
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,
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 more