pub struct PendingCommandHandle { /* private fields */ }Expand description
Low-latency command handle with lifecycle tracking over the shared command bus.
Implementations§
Source§impl PendingCommandHandle
impl PendingCommandHandle
Sourcepub const fn ack(&self) -> &CommandAck
pub const fn ack(&self) -> &CommandAck
Return the immediate acknowledgement captured when the command was sent.
Sourcepub async fn receipt(&mut self) -> Result<CommandReceipt>
pub async fn receipt(&mut self) -> Result<CommandReceipt>
Return the initial receipt, then subsequent matching receipts from the command bus.
The first call is always the receipt embedded in Self::ack. Later
calls wait for matching command-lane receipt events.
Sourcepub async fn next_lifecycle(&mut self) -> Result<CommandLifecycleEvent>
pub async fn next_lifecycle(&mut self) -> Result<CommandLifecycleEvent>
Wait for the next lifecycle event matching this command.
This observes acknowledgement, recovery scheduling, recovery completion, and follow-up receipt events emitted by the command lane.
Sourcepub async fn resolved(&mut self) -> Result<CommandReceipt>
pub async fn resolved(&mut self) -> Result<CommandReceipt>
Return a receipt that is resolved as far as local evidence allows.
Non-uncertain receipts are returned immediately. UnknownExecution
receipts wait for a matching recovery completion and then map the
reconcile report into the best known final status.