pub struct Executor {
pub max_parallel: usize,
pub max_retry_attempts: u32,
pub retry_base_delay: Duration,
pub retry_max_delay: Duration,
pub strict_exports: bool,
}Expand description
Deterministic DAG scheduler. Side effects remain owned by the injected port.
Fields§
§max_parallel: usize§max_retry_attempts: u32§retry_base_delay: Duration§retry_max_delay: Duration§strict_exports: boolImplementations§
Source§impl Executor
impl Executor
pub fn new() -> Executor
pub fn with_max_parallel(self, max: usize) -> Executor
pub fn with_retry_policy( self, max_retry_attempts: u32, retry_base_delay: Duration, retry_max_delay: Duration, ) -> Executor
pub fn with_export_contract(self, strict_exports: bool) -> Executor
pub async fn execute( &self, dag: &mut ExecutionDag, ctx: &ExecutorContext, ) -> ExecutionResult
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
impl UnwindSafe for Executor
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.