pub struct StoreScheduleTimer<S: ?Sized> { /* private fields */ }Expand description
Durable timer adapter backed by the workflow timer store API with a schedule coordinator owner.
Implementations§
Source§impl<S: ?Sized> StoreScheduleTimer<S>
impl<S: ?Sized> StoreScheduleTimer<S>
Sourcepub fn new(store: Arc<S>, coordinator_workflow_id: WorkflowId) -> Self
pub fn new(store: Arc<S>, coordinator_workflow_id: WorkflowId) -> Self
Creates a store-backed schedule timer adapter.
Trait Implementations§
Source§impl<S> ScheduleTimer for StoreScheduleTimer<S>where
S: EventStore + ?Sized,
impl<S> ScheduleTimer for StoreScheduleTimer<S>where
S: EventStore + ?Sized,
Source§fn arm_schedule_timer<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_schedule_id: &'life1 ScheduleId,
timer_id: &'life2 TimerId,
fire_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), ScheduleEvaluatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn arm_schedule_timer<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_schedule_id: &'life1 ScheduleId,
timer_id: &'life2 TimerId,
fire_at: DateTime<Utc>,
) -> Pin<Box<dyn Future<Output = Result<(), ScheduleEvaluatorError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Arms a durable timer for the schedule’s next fire time.
Auto Trait Implementations§
impl<S> Freeze for StoreScheduleTimer<S>where
S: ?Sized,
impl<S> RefUnwindSafe for StoreScheduleTimer<S>where
S: RefUnwindSafe + ?Sized,
impl<S> Send for StoreScheduleTimer<S>
impl<S> Sync for StoreScheduleTimer<S>
impl<S> Unpin for StoreScheduleTimer<S>where
S: ?Sized,
impl<S> UnsafeUnpin for StoreScheduleTimer<S>where
S: ?Sized,
impl<S> UnwindSafe for StoreScheduleTimer<S>where
S: RefUnwindSafe + ?Sized,
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