pub struct MapConfig {
pub max_concurrency: Option<usize>,
pub item_batcher: Option<ItemBatcher>,
pub completion_config: CompletionConfig,
pub serdes: Option<Arc<dyn SerDesAny>>,
}Expand description
Configuration for map operations.
§Examples
Basic map configuration with concurrency limit:
use durable_execution_sdk::MapConfig;
let config = MapConfig {
max_concurrency: Some(5),
..Default::default()
};Map with failure tolerance:
use durable_execution_sdk::{MapConfig, CompletionConfig};
let config = MapConfig {
max_concurrency: Some(10),
completion_config: CompletionConfig::with_failure_tolerance(2),
..Default::default()
};Fields§
§max_concurrency: Option<usize>Maximum number of concurrent executions.
item_batcher: Option<ItemBatcher>Optional item batcher for grouping items.
completion_config: CompletionConfigCompletion configuration defining success/failure criteria.
serdes: Option<Arc<dyn SerDesAny>>Optional custom serializer/deserializer.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MapConfig
impl !RefUnwindSafe for MapConfig
impl Send for MapConfig
impl Sync for MapConfig
impl Unpin for MapConfig
impl UnsafeUnpin for MapConfig
impl !UnwindSafe for MapConfig
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> 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.