Skip to main content

Crate imsg_map

Crate imsg_map 

Source
Expand description

MAP protocol logic — commands, folder navigation, MNS server, and iOS quirks.

Modules§

client
MAP client — OBEX session setup, SETPATH sequencing, and request dispatch.
folders
Folder listing and SETPATH navigation for MAP folder hierarchy.
messages
Message listing, retrieval, push, and status operations (GetMessage, PushMessage, SetMessageStatus).
mns_event
MAP-event-report event types and the parser that decodes them from the phone’s MNS PUT body.
mns_server
MNS OBEX server — accepts connections from the remote device and yields MAP event reports.
params
MAP application parameter tag constants, bitflags, and encoder functions.
quirks
iOS-specific OBEX/MAP quirks that deviate from the Bluetooth specification.
xml
MAP XML parser for message listings (MAP-msg-listing).

Structs§

BMessage
Single-level BENV structure; nested BENV not supported.
FolderEntry
A single MAP folder from a GetFolderListing response.
FolderListing
Parsed body of a MAP GetFolderListing OBEX response.

Enums§

BMessageError
bMessage parse errors — missing required fields, unrecognised STATUS/TYPE values, and unterminated sections.
MapError
MAP client/MNS errors — OBEX, transport, server response, parse, input validation, and encoding.
MessageStatus
Read/unread status from the bMessage STATUS field.
MessageType
Message type from the bMessage TYPE field.
ObexError
OBEX client errors — connection state, packet codec, server rejection, and missing protocol headers.
TransportError
OBEX framing errors — invalid length, unexpected EOF, and external transport failures.
XmlError
MAP XML parsing errors — quick-xml parse, attribute decode, and folder name UTF-8 validation.