pub struct StepConfig {
pub retry_strategy: Option<Box<dyn RetryStrategy>>,
pub step_semantics: StepSemantics,
pub serdes: Option<Arc<dyn SerDesAny>>,
pub retryable_error_filter: Option<RetryableErrorFilter>,
}Expand description
Configuration for step operations.
§Examples
Using default configuration:
use durable_execution_sdk::StepConfig;
let config = StepConfig::default();
// Default uses AtLeastOncePerRetry semanticsConfiguring step semantics:
use durable_execution_sdk::{StepConfig, StepSemantics};
// For non-idempotent operations, use AtMostOncePerRetry
let config = StepConfig {
step_semantics: StepSemantics::AtMostOncePerRetry,
..Default::default()
};Fields§
§retry_strategy: Option<Box<dyn RetryStrategy>>Optional retry strategy for failed steps.
step_semantics: StepSemanticsExecution semantics (at-most-once or at-least-once).
serdes: Option<Arc<dyn SerDesAny>>Optional custom serializer/deserializer.
retryable_error_filter: Option<RetryableErrorFilter>Optional filter for retryable errors. When set, only errors matching
the filter will be retried. When None, all errors are retried
(current behavior preserved).
Trait Implementations§
Source§impl Clone for StepConfig
impl Clone for StepConfig
Source§fn clone(&self) -> StepConfig
fn clone(&self) -> StepConfig
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 StepConfig
impl Debug for StepConfig
Source§impl Default for StepConfig
impl Default for StepConfig
Source§fn default() -> StepConfig
fn default() -> StepConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StepConfig
impl !RefUnwindSafe for StepConfig
impl Send for StepConfig
impl Sync for StepConfig
impl Unpin for StepConfig
impl UnsafeUnpin for StepConfig
impl !UnwindSafe for StepConfig
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.