pub enum Pdu {
Show 34 variants
BindTransmitter(Bind),
BindTransmitterResp(BindResp),
BindReceiver(Bind),
BindReceiverResp(BindResp),
BindTransceiver(Bind),
BindTransceiverResp(BindResp),
Outbind(Outbind),
AlertNotification(AlertNotification),
SubmitSm(SubmitSm),
SubmitSmResp(SubmitSmResp),
QuerySm(QuerySm),
QuerySmResp(QuerySmResp),
DeliverSm(DeliverSm),
DeliverSmResp(SmResp),
DataSm(DataSm),
DataSmResp(SmResp),
CancelSm(CancelSm),
ReplaceSm(ReplaceSm),
SubmitMulti(SubmitMulti),
SubmitMultiResp(SubmitMultiResp),
BroadcastSm(BroadcastSm),
BroadcastSmResp(BroadcastSmResp),
QueryBroadcastSm(QueryBroadcastSm),
QueryBroadcastSmResp(QueryBroadcastSmResp),
CancelBroadcastSm(CancelBroadcastSm),
Unbind,
UnbindResp,
EnquireLink,
EnquireLinkResp,
GenericNack,
CancelSmResp,
ReplaceSmResp,
CancelBroadcastSmResp,
Other {
command_id: CommandId,
body: AnyOctetString,
},
}
Variants§
BindTransmitter(Bind)
Authentication PDU used by a transmitter ESME to bind to the Message Centre. The PDU contains identification information and an access password for the ESME.
BindTransmitterResp(BindResp)
Message Centre response to a bind_transmitter PDU. This PDU indicates the success or failure of the ESME’s attempt to bind as a transmitter.
BindReceiver(Bind)
Authentication PDU used by a receiver ESME to bind to the Message Centre. The PDU contains identification information, an access password for the ESME and may also contain routing information specifying the range of addresses serviced by the ESME.
BindReceiverResp(BindResp)
Message Centre response to a bind_receiver PDU. This PDU indicates the success or failure of the ESME’s attempt to bind as a receiver.
BindTransceiver(Bind)
Authentication PDU used by a transceiver ESME to bind to the Message Centre. The PDU contains identification information, an access password for the ESME and may also contain routing information specifying the range of addresses serviced by the ESME.
BindTransceiverResp(BindResp)
Message Centre response to a bind_transceiver PDU. This PDU indicates the success or failure of the ESME’s attempt to bind as a transceiver.
Outbind(Outbind)
Authentication PDU used by a Message Centre to Outbind to an ESME to inform it that messages are present in the MC. The PDU contains identification, and access password for the ESME. If the ESME authenticates the request, it will respond with a bind_receiver or bind_transceiver to begin the process of binding into the MC.
AlertNotification(AlertNotification)
The alert_notification PDU is sent by the MC to the ESME across a Receiver or Transceiver session. It is sent when the MC has detected that a particular mobile subscriber has become available and a delivery pending flag had been previously set for that subscriber by means of the set_dpf TLV.
A typical use of this operation is to trigger a data content ‘Push’ to the subscriber from a WAP Proxy Server.
Note: There is no associated alert_notification_resp PDU.
SubmitSm(SubmitSm)
This operation is used by an ESME to submit a short message to the MC for onward transmission to a specified short message entity (SME).
SubmitSmResp(SubmitSmResp)
QuerySm(QuerySm)
This command is issued by the ESME to query the status of a previously submitted short message. The matching mechanism is based on the MC assigned message_id and source address. Where the original submit_sm, data_sm or submit_multi ‘source address’ was defaulted to NULL, then the source address in the query_sm command should also be set to NULL.
QuerySmResp(QuerySmResp)
DeliverSm(DeliverSm)
The deliver_sm is issued by the MC to send a message to an ESME. Using this command, the MC may route a short message to the ESME for delivery.
DeliverSmResp(SmResp)
DataSm(DataSm)
The data_sm operation is similar to the submit_sm in that it provides a means to submit a mobile-terminated message. However, data_sm is intended for packet-based applications such as WAP in that it features a reduced PDU body containing fields relevant to WAP or packet-based applications.
DataSmResp(SmResp)
CancelSm(CancelSm)
This command is issued by the ESME to cancel one or more previously submitted short messages that are pending delivery. The command may specify a particular message to cancel, or all messages matching a particular source, destination and service_type.
If the message_id is set to the ID of a previously submitted message, then provided the source address supplied by the ESME matches that of the stored message, that message will be cancelled.
If the message_id is NULL, all outstanding undelivered messages with matching source and
destination addresses (and service_type if specified) are cancelled.
Where the original submit_sm, data_sm or submit_multi ‘source address’ is defaulted to
NULL, then the source address in the cancel_sm command should also be NULL.
ReplaceSm(ReplaceSm)
This command is issued by the ESME to replace a previously submitted short message that is pending delivery. The matching mechanism is based on the message_id and source address of the original message.
Where the original submit_sm ‘source address’ was defaulted to NULL, then the source address in the replace_sm command should also be NULL.
SubmitMulti(SubmitMulti)
The submit_multi operation is an enhanced variation of submit_sm designed to support up to 255 different destinations instead of the default single destination. It provides an efficient means of sending the same message to several different subscribers at the same time.
SubmitMultiResp(SubmitMultiResp)
BroadcastSm(BroadcastSm)
This operation is issued by the ESME to submit a message to the Message Centre for broadcast to a specified geographical area or set of geographical areas.
BroadcastSmResp(BroadcastSmResp)
QueryBroadcastSm(QueryBroadcastSm)
This command is issued by the ESME to query the status of a previously submitted broadcast message. The message can be queried either on the basis of the Message Center assigned reference message_id returned in the broadcast_sm_resp or by the ESME assigned message reference number user_message_reference as indicated in the broadcast_sm operation associated with that message.
Note: Where the broadcast is queried on the basis of the ESME assigned message reference user_message_reference this should be qualified within the service by the system_id and/or the system_type associated with the query_broadcast_sm operation (specified in the bind operation). If more than one message with the same user_message_reference value is present in the Message Center, the details of the most recently submitted message with the specified user_message_reference value will be returned in the query_broadcast_sm_resp.
QueryBroadcastSmResp(QueryBroadcastSmResp)
CancelBroadcastSm(CancelBroadcastSm)
This command is issued by the ESME to cancel a broadcast message which has been previously submitted to the Message Centre for broadcast via broadcast_sm and which is still pending delivery.
If the message_id is set to the ID of a previously submitted message, then provided the source address supplied by the ESME matches that of the stored message, that message will be cancelled.
If the message_id is NULL, all outstanding undelivered messages with matching source and destination addresses (and service_type if specified) are cancelled.
If the user_message_reference is set to the ESME-assigned reference of a previously submitted message, then provided the source address supplied by the ESME matches that of the stored message, that message will be cancelled.
Where the original broadcast_sm ‘source address’ was defaulted to NULL, then the source address in the cancel_broadcast_sm command should also be NULL.
Unbind
This PDU can be sent by the ESME or MC as a means of initiating the termination of a SMPP session.
UnbindResp
This PDU can be sent by the ESME or MC as a means of acknowledging the receipt of an unbind request. After sending this PDU the MC typically closes the network connection.
EnquireLink
This PDU can be sent by the ESME or MC to test the network connection. The receiving peer is expected to acknowledge the PDU as a means of verifying the test.
EnquireLinkResp
This PDU is used to acknowledge an enquire_link request sent by an ESME or MC.
GenericNack
This PDU can be sent by an ESME or MC as a means of indicating the receipt of an invalid PDU. The receipt of a generic_nack usually indicates that the remote peer either cannot identify the PDU or has deemed it an invalid PDU due to its size or content.
CancelSmResp
The MC returns this PDU to indicate the success or failure of a cancel_sm PDU.
ReplaceSmResp
The replace_sm_resp PDU indicates the success or failure of a replace_sm PDU.
CancelBroadcastSmResp
The MC returns a query_broadcast_sm_resp PDU as a means of indicating the result of a broadcast query attempt. The PDU will indicate the success or failure of the attempt and for successful attempts will also include the current state of the message.
Other
Trait Implementations§
source§impl DecodeWithKeyOptional for Pdu
impl DecodeWithKeyOptional for Pdu
source§impl Encode for Pdu
impl Encode for Pdu
source§fn encode_to<W: Write>(&self, writer: &mut W) -> Result<(), EncodeError>
fn encode_to<W: Write>(&self, writer: &mut W) -> Result<(), EncodeError>
source§fn encode_into_vec(&self) -> Result<Vec<u8>, EncodeError>
fn encode_into_vec(&self) -> Result<Vec<u8>, EncodeError>
source§impl HasCommandId for Pdu
impl HasCommandId for Pdu
fn command_id(&self) -> CommandId
source§impl Ord for Pdu
impl Ord for Pdu
source§impl PartialOrd for Pdu
impl PartialOrd for Pdu
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more