pub enum ContractError {
InvalidInput(String),
ExternalDispatchRequired,
InvalidQueueDelivery(String),
Conflict,
OwnershipLost,
UnknownSession,
SessionExpired,
ObsoleteOperation,
OutOfOrder,
Busy,
NotFound,
Unavailable(String),
}Expand description
Expected operation rejection or an adapter failure. Backend errors must not be translated into successful empty acquisitions or lost ownership.
Variants§
InvalidInput(String)
ExternalDispatchRequired
Integrated acquisition rejected because the queue requires external dispatch. This exact operation granted no authority and committed no consumer-cursor mutation. Existing completed sequences must replay before checking the route. Only a timely confirmed response permits stopping reconciliation; a transport timeout remains an unknown outcome.
InvalidQueueDelivery(String)
A queue receive positively returned invalid transport data, before any targeted claim or cursor mutation was issued. This stops new broker admission without acknowledging the record. Adapters must not use this for timeouts, network failures, or errors from claim/acknowledgment calls.
Conflict
OwnershipLost
UnknownSession
SessionExpired
ObsoleteOperation
OutOfOrder
Busy
NotFound
Trait Implementations§
Source§impl Clone for ContractError
impl Clone for ContractError
Source§impl Debug for ContractError
impl Debug for ContractError
Source§impl<'de> Deserialize<'de> for ContractError
impl<'de> Deserialize<'de> for ContractError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Display for ContractError
impl Display for ContractError
impl Eq for ContractError
Source§impl Error for ContractError
impl Error for ContractError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()