Expand description
§Common Definitions
This module contains common constants, error types, and helper functions used throughout the library.
Enums§
Constants§
- CMD_
ALERT_ NOTIFICATION - Command ID for Alert Notification.
- CMD_
ALERT_ NOTIFICATION_ RESP - Command ID for Alert Notification Response (Note: Alert Notification does not have a standard response, but some implementations might use one).
- CMD_
BIND_ RECEIVER - Command ID for Bind Receiver.
- CMD_
BIND_ RECEIVER_ RESP - Command ID for Bind Receiver Response.
- CMD_
BIND_ TRANSCEIVER - Command ID for Bind Transceiver.
- CMD_
BIND_ TRANSCEIVER_ RESP - Command ID for Bind Transceiver Response.
- CMD_
BIND_ TRANSMITTER - Command ID for Bind Transmitter.
- CMD_
BIND_ TRANSMITTER_ RESP - Command ID for Bind Transmitter Response.
- CMD_
CANCEL_ SM - Command ID for Cancel SM.
- CMD_
CANCEL_ SM_ RESP - Command ID for Cancel SM Response.
- CMD_
DATA_ SM - Command ID for Data SM.
- CMD_
DATA_ SM_ RESP - Command ID for Data SM Response.
- CMD_
DELIVER_ SM - Command ID for Deliver SM.
- CMD_
DELIVER_ SM_ RESP - Command ID for Deliver SM Response.
- CMD_
ENQUIRE_ LINK - Command ID for Enquire Link.
- CMD_
ENQUIRE_ LINK_ RESP - Command ID for Enquire Link Response.
- CMD_
OUTBIND - Command ID for Outbind.
- CMD_
QUERY_ SM - Command ID for Query SM.
- CMD_
QUERY_ SM_ RESP - Command ID for Query SM Response.
- CMD_
REPLACE_ SM - Command ID for Replace SM.
- CMD_
REPLACE_ SM_ RESP - Command ID for Replace SM Response.
- CMD_
SUBMIT_ MULTI_ SM - Command ID for Submit Multi SM.
- CMD_
SUBMIT_ MULTI_ SM_ RESP - Command ID for Submit Multi SM Response.
- CMD_
SUBMIT_ SM - Command ID for Submit SM.
- CMD_
SUBMIT_ SM_ MULTI - Command ID for Submit SM Multi (Reserved).
- CMD_
SUBMIT_ SM_ MULTI_ RESP - Command ID for Submit SM Multi Response (Reserved).
- CMD_
SUBMIT_ SM_ RESP - Command ID for Submit SM Response.
- CMD_
UNBIND - Command ID for Unbind.
- CMD_
UNBIND_ RESP - Command ID for Unbind Response.
- COMMAND_
STATUS_ OK - Command Status
- GENERIC_
NACK - Generic NACK.
- HEADER_
LEN - SMPP_
INTERFACE_ VERSION - SMPP Interface Version 3.4
Functions§
- get_
status_ code - Helper function to get status code from description (Reverse lookup)
- get_
status_ description - Helper function to get error description from status code
- read_
c_ string - optimized helper to read a C-Style string from a Cursor<&u8>
- write_
c_ string - Helper to write a C-Style string (null terminated)