pub struct ApprovalBroker { /* private fields */ }Expand description
Holds approval broker application-layer state or configuration. Use it with the documented coordinator methods; run, journal, event, provider, or port effects are called out on those methods rather than on construction.
Implementations§
Source§impl ApprovalBroker
impl ApprovalBroker
Sourcepub fn cancel_before_dispatch(
&self,
approval_request_id: ApprovalRequestId,
reason: impl Into<String>,
)
pub fn cancel_before_dispatch( &self, approval_request_id: ApprovalRequestId, reason: impl Into<String>, )
Coordinates cancel before dispatch for the application::approval contract. This may call configured ports and update runtime/journal/event state according to the surrounding module, without introducing a parallel behavior path.
Sourcepub fn request_approval(
&self,
request: ApprovalRequest,
dispatcher: Option<&dyn ApprovalDispatcher>,
journal: &dyn RunJournal,
) -> Result<ApprovalBrokerOutcome, AgentError>
pub fn request_approval( &self, request: ApprovalRequest, dispatcher: Option<&dyn ApprovalDispatcher>, journal: &dyn RunJournal, ) -> Result<ApprovalBrokerOutcome, AgentError>
Coordinates request approval for the application::approval contract. This may call configured ports and update runtime/journal/event state according to the surrounding module, without introducing a parallel behavior path.
Trait Implementations§
Source§impl Debug for ApprovalBroker
impl Debug for ApprovalBroker
Auto Trait Implementations§
impl !Freeze for ApprovalBroker
impl RefUnwindSafe for ApprovalBroker
impl Send for ApprovalBroker
impl Sync for ApprovalBroker
impl Unpin for ApprovalBroker
impl UnsafeUnpin for ApprovalBroker
impl UnwindSafe for ApprovalBroker
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