A snapshot of the shared budget ledger, if a budget is attached.
(&self)
| 195 | |
| 196 | /// A snapshot of the shared budget ledger, if a budget is attached. |
| 197 | pub fn budget_snapshot(&self) -> Option<BudgetSnapshot> { |
| 198 | self.budget.as_ref().map(|b| b.snapshot()) |
| 199 | } |
| 200 | |
| 201 | /// Subscribe to this workflow's [`WorkflowEvent`] milestones. |
| 202 | pub fn subscribe(&self) -> broadcast::Receiver<WorkflowEvent> { |