pub struct ExecutionManager { /* private fields */ }Expand description
Manages all execution states.
Implementations§
Source§impl ExecutionManager
impl ExecutionManager
Sourcepub fn start_execution(
&mut self,
params: StartExecutionParams,
) -> InvocationResult
pub fn start_execution( &mut self, params: StartExecutionParams, ) -> InvocationResult
Start a new execution.
Sourcepub fn start_execution_from_request(
&mut self,
request: StartDurableExecutionRequest,
) -> InvocationResult
pub fn start_execution_from_request( &mut self, request: StartDurableExecutionRequest, ) -> InvocationResult
Start a new execution from a request.
Sourcepub fn start_invocation(
&mut self,
params: StartInvocationRequest,
) -> Result<InvocationResult, TestError>
pub fn start_invocation( &mut self, params: StartInvocationRequest, ) -> Result<InvocationResult, TestError>
Start an invocation for an existing execution.
Sourcepub fn complete_invocation(
&mut self,
request: CompleteInvocationRequest,
) -> Result<CompleteInvocationResponse, TestError>
pub fn complete_invocation( &mut self, request: CompleteInvocationRequest, ) -> Result<CompleteInvocationResponse, TestError>
Complete an invocation.
Sourcepub fn get_checkpoints_by_execution(
&self,
execution_id: &str,
) -> Option<&CheckpointManager>
pub fn get_checkpoints_by_execution( &self, execution_id: &str, ) -> Option<&CheckpointManager>
Get checkpoint manager for an execution.
Sourcepub fn get_checkpoints_by_execution_mut(
&mut self,
execution_id: &str,
) -> Option<&mut CheckpointManager>
pub fn get_checkpoints_by_execution_mut( &mut self, execution_id: &str, ) -> Option<&mut CheckpointManager>
Get mutable checkpoint manager for an execution.
Sourcepub fn get_checkpoints_by_token(
&self,
token: &str,
) -> Result<Option<&CheckpointManager>, TestError>
pub fn get_checkpoints_by_token( &self, token: &str, ) -> Result<Option<&CheckpointManager>, TestError>
Get checkpoint manager by checkpoint token.
Sourcepub fn get_checkpoints_by_token_mut(
&mut self,
token: &str,
) -> Result<Option<&mut CheckpointManager>, TestError>
pub fn get_checkpoints_by_token_mut( &mut self, token: &str, ) -> Result<Option<&mut CheckpointManager>, TestError>
Get mutable checkpoint manager by checkpoint token.
Sourcepub fn get_execution_ids(&self) -> Vec<&ExecutionId> ⓘ
pub fn get_execution_ids(&self) -> Vec<&ExecutionId> ⓘ
Get all execution IDs.
Sourcepub fn has_execution(&self, execution_id: &str) -> bool
pub fn has_execution(&self, execution_id: &str) -> bool
Check if an execution exists.
Sourcepub fn remove_execution(
&mut self,
execution_id: &str,
) -> Option<CheckpointManager>
pub fn remove_execution( &mut self, execution_id: &str, ) -> Option<CheckpointManager>
Remove an execution.
Trait Implementations§
Source§impl Debug for ExecutionManager
impl Debug for ExecutionManager
Source§impl Default for ExecutionManager
impl Default for ExecutionManager
Source§fn default() -> ExecutionManager
fn default() -> ExecutionManager
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ExecutionManager
impl RefUnwindSafe for ExecutionManager
impl Send for ExecutionManager
impl Sync for ExecutionManager
impl Unpin for ExecutionManager
impl UnsafeUnpin for ExecutionManager
impl UnwindSafe for ExecutionManager
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> 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.