pub struct GoalCycleService { /* private fields */ }Expand description
The goal cycle as one service: its phases depend on their order.
Implementations§
Trait Implementations§
Source§impl Service for GoalCycleService
impl Service for GoalCycleService
fn name(&self) -> &str
fn schedule(&self) -> Schedule
Source§fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 ServiceContext,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn start<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 ServiceContext,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Once, before any service’s first run. A failure is reported and the
service still runs.
fn run<'life0, 'life1, 'async_trait>(
&'life0 self,
_ctx: &'life1 ServiceContext,
) -> Pin<Box<dyn Future<Output = Result<(), ServiceError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for GoalCycleService
impl !RefUnwindSafe for GoalCycleService
impl !UnwindSafe for GoalCycleService
impl Forget for GoalCycleService
impl Move for GoalCycleService
impl Send for GoalCycleService
impl Sync for GoalCycleService
impl Unpin for GoalCycleServicewhere
Align4<u32>: Unpin,
Align1<u8>: Unpin,
*const Waiter is !null: Unpin,
Align8<usize>: Unpin,
Arc<dyn SchedulerStore>: Unpin,
Arc<dyn TaskLeadHost>: Unpin,
Arc<dyn NoticeDelivery>: Unpin,
Arc<dyn WorkPresenter>: Unpin,
Arc<RwLock<HashMap<String, CancellationToken>>>: Unpin,
Arc<RwLock<HashMap<String, GoalBudgetOverride>>>: Unpin,
Arc<RwLock<HashMap<String, GoalRunBudgetState>>>: Unpin,
Arc<Mutex<HashSet<String>>>: Unpin,
Arc<Atomic<bool>>: Unpin,
Arc<Mutex<Vec<JoinHandle<()>>>>: Unpin,
Arc<NeedsModelNotices>: Unpin,
*const u8 is !null: Unpin,
impl UnsafeUnpin for GoalCycleServicewhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
*const ArcInner<dyn SchedulerStore> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn SchedulerStore>>: UnsafeUnpin,
*const ArcInner<dyn TaskLeadHost> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TaskLeadHost>>: UnsafeUnpin,
*const ArcInner<dyn NoticeDelivery> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn NoticeDelivery>>: UnsafeUnpin,
*const ArcInner<dyn WorkPresenter> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn WorkPresenter>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, CancellationToken>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, CancellationToken>>>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, GoalBudgetOverride>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, GoalBudgetOverride>>>>: UnsafeUnpin,
*const ArcInner<RwLock<HashMap<String, GoalRunBudgetState>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<HashMap<String, GoalRunBudgetState>>>>: UnsafeUnpin,
*const ArcInner<Mutex<HashSet<String>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashSet<String>>>>: UnsafeUnpin,
*const ArcInner<Atomic<bool>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<bool>>>: UnsafeUnpin,
*const ArcInner<Mutex<Vec<JoinHandle<()>>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Vec<JoinHandle<()>>>>>: UnsafeUnpin,
*const ArcInner<NeedsModelNotices> is !null: UnsafeUnpin,
PhantomData<ArcInner<NeedsModelNotices>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
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 more