Skip to main content

classify_push_error

Function classify_push_error 

Source
pub const fn classify_push_error(e: &MapError) -> (OutboxStatus, OutgoingStatus)
Expand description

Classifies a MAP push error into the appropriate outbox and message delivery states.

Returns (OutboxStatus, OutgoingStatus) to be written to the outbox entry and the speculative message row respectively.

Transport errors map to Unknown because the PUT may have been transmitted before the connection dropped; reconciliation against the Sent folder is required to resolve. Server and input rejections map to FailedPermanent; all other errors to FailedRetryable.