pub struct AgentDelivery { /* private fields */ }Expand description
Publishes the durable outbox to the verified holder’s server-resolved inbox.
Implementations§
Source§impl AgentDelivery
impl AgentDelivery
Sourcepub fn new(
owners: &ApprovalAgents,
inboxes: BTreeMap<String, ChannelHandle>,
exchange: String,
limits: WaitingLimits,
) -> Result<Arc<Self>, DraftError>
pub fn new( owners: &ApprovalAgents, inboxes: BTreeMap<String, ChannelHandle>, exchange: String, limits: WaitingLimits, ) -> Result<Arc<Self>, DraftError>
Exact native durable inboxes share the configured retained-history population bound.
§Errors
Invalid station, mismatched/non-durable inbox or configured capacity.
Sourcepub fn bind_inbox(
&self,
name: &str,
inbox: ChannelHandle,
) -> Result<(), DraftError>
pub fn bind_inbox( &self, name: &str, inbox: ChannelHandle, ) -> Result<(), DraftError>
Binds a newly registered native inbox without rebuilding the outbox owner.
§Errors
Unknown station, wrong/non-durable channel, unavailable index or capacity.
Trait Implementations§
Source§impl Debug for AgentDelivery
impl Debug for AgentDelivery
Source§impl OutcomeDelivery for AgentDelivery
impl OutcomeDelivery for AgentDelivery
Source§fn deliver(
&self,
holder: &str,
draft: &ApprovedDraft,
receipt: &Execution,
) -> Result<(), DraftError>
fn deliver( &self, holder: &str, draft: &ApprovedDraft, receipt: &Execution, ) -> Result<(), DraftError>
Atomically clears waiting and puts one outcome in the bound agent inbox. Read more
Auto Trait Implementations§
impl !Freeze for AgentDelivery
impl !RefUnwindSafe for AgentDelivery
impl !UnwindSafe for AgentDelivery
impl Send for AgentDelivery
impl Sync for AgentDelivery
impl Unpin for AgentDelivery
impl UnsafeUnpin for AgentDelivery
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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