pub struct InMemoryJobOrchestrator { /* private fields */ }Implementations§
Source§impl InMemoryJobOrchestrator
impl InMemoryJobOrchestrator
pub fn mark_succeeded(&self, id: &str, result: Value) -> IntegrationResult<()>
pub fn mark_failed( &self, id: &str, error: IntegrationError, ) -> IntegrationResult<()>
Trait Implementations§
Source§impl Default for InMemoryJobOrchestrator
impl Default for InMemoryJobOrchestrator
Source§fn default() -> InMemoryJobOrchestrator
fn default() -> InMemoryJobOrchestrator
Returns the “default value” for a type. Read more
Source§impl JobOrchestrator for InMemoryJobOrchestrator
impl JobOrchestrator for InMemoryJobOrchestrator
fn enqueue(&self, request: JobRequest) -> IntegrationResult<JobHandle>
fn status(&self, id: &str) -> IntegrationResult<JobStatus>
fn poll( &self, id: &str, attempts: u32, backoff_ms: u64, ) -> IntegrationResult<JobStatus>
fn register_completion_callback(&self, callback: JobCompletionCallback)
Auto Trait Implementations§
impl !Freeze for InMemoryJobOrchestrator
impl RefUnwindSafe for InMemoryJobOrchestrator
impl Send for InMemoryJobOrchestrator
impl Sync for InMemoryJobOrchestrator
impl Unpin for InMemoryJobOrchestrator
impl UnsafeUnpin for InMemoryJobOrchestrator
impl UnwindSafe for InMemoryJobOrchestrator
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