Skip to main content

order_state_unknown_cid

Function order_state_unknown_cid 

Source
pub async fn order_state_unknown_cid<U: OrderExecutor + ?Sized>(ud: &U)
Expand description

order_state of a cid the broker has never seen is a refusal: [Error::Rejected] with code not_found ([brokapi_core::NOT_FOUND]), spelled the same at every broker.

The same answer at every broker, so a bot that recovers from [Error::Unknown] with order_state needs one branch for “the broker does not know the order (yet)”. Not Transport, not Ok.

§Panics

With [conformance:order_state_unknown_cid] ... when the answer is anything else.

§Examples

brokapi_conformance::order_state_unknown_cid(&ud).await;