Expand description
Outbox drain: push-error classification, single-message send, and outbox flush.
Functions§
- classify_
push_ error - Classifies a MAP push error into the appropriate outbox and message delivery states.
- drain_
outbox - Fetches all
queuedoutbox entries and pushes each to the device, updating the store with the outcome. - is_
fatal_ anyhow - Returns
truewhen any error in the chain is a fatal MAP transport error. - is_
session_ fatal - Returns
truewheneindicates the RFCOMM/OBEX transport has died and no further MAP operations will succeed on this session. - push_
sms - Pushes an outgoing SMS to the device without recording it in the store.
- send_
sms - Records the outbound message in the store, pushes it to the device, and updates the outcome — all as a single atomic sequence.