#[repr(u32)]pub enum CommandId {
Show 34 variants
BindReceiver = 1,
BindTransmitter = 2,
QuerySm = 3,
SubmitSm = 4,
DeliverSm = 5,
Unbind = 6,
ReplaceSm = 7,
CancelSm = 8,
BindTransceiver = 9,
Outbind = 11,
EnquireLink = 21,
SubmitMulti = 33,
AlertNotification = 258,
DataSm = 259,
BroadcastSm = 273,
QueryBroadcastSm = 274,
CancelBroadcastSm = 275,
GenericNack = 2_147_483_648,
BindReceiverResp = 2_147_483_649,
BindTransmitterResp = 2_147_483_650,
QuerySmResp = 2_147_483_651,
SubmitSmResp = 2_147_483_652,
DeliverSmResp = 2_147_483_653,
UnbindResp = 2_147_483_654,
ReplaceSmResp = 2_147_483_655,
CancelSmResp = 2_147_483_656,
BindTransceiverResp = 2_147_483_657,
EnquireLinkResp = 2_147_483_669,
SubmitMultiResp = 2_147_483_681,
DataSmResp = 2_147_483_907,
BroadcastSmResp = 2_147_483_921,
QueryBroadcastSmResp = 2_147_483_922,
CancelBroadcastSmResp = 2_147_483_923,
Other(u32),
}
Expand description
The CommandId
identifies the SMPP operation e.g. submit_sm, bind_transmitter etc. The
CommandId
is encoded as a 4-octet integer value.
CommandId
s for request PDUs are allocated from a range of numbers; 0x00000000 to
0x000001FF.
CommandId
s for response PDUs are allocated from a range of numbers; 0x80000000 to
0x800001FF.
The relationship between the CommandId
for a request PDU and its associated response
PDU is that bit 31 is cleared for the request and set for the response. For example,
replace_sm has a CommandId
= 0x00000007 and its’ response PDU replace_sm_resp has
a CommandId
= 0x80000007.
Variants§
BindReceiver = 1
BindTransmitter = 2
QuerySm = 3
SubmitSm = 4
DeliverSm = 5
Unbind = 6
ReplaceSm = 7
CancelSm = 8
BindTransceiver = 9
Outbind = 11
EnquireLink = 21
SubmitMulti = 33
AlertNotification = 258
DataSm = 259
BroadcastSm = 273
QueryBroadcastSm = 274
CancelBroadcastSm = 275
GenericNack = 2_147_483_648
BindReceiverResp = 2_147_483_649
BindTransmitterResp = 2_147_483_650
QuerySmResp = 2_147_483_651
SubmitSmResp = 2_147_483_652
DeliverSmResp = 2_147_483_653
UnbindResp = 2_147_483_654
ReplaceSmResp = 2_147_483_655
CancelSmResp = 2_147_483_656
BindTransceiverResp = 2_147_483_657
EnquireLinkResp = 2_147_483_669
SubmitMultiResp = 2_147_483_681
DataSmResp = 2_147_483_907
BroadcastSmResp = 2_147_483_921
QueryBroadcastSmResp = 2_147_483_922
CancelBroadcastSmResp = 2_147_483_923
Other(u32)
Trait Implementations§
source§impl Ord for CommandId
impl Ord for CommandId
source§impl PartialEq for CommandId
impl PartialEq for CommandId
source§impl PartialOrd for CommandId
impl PartialOrd for CommandId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CommandId
impl Eq for CommandId
impl StructuralPartialEq for CommandId
Auto Trait Implementations§
impl Freeze for CommandId
impl RefUnwindSafe for CommandId
impl Send for CommandId
impl Sync for CommandId
impl Unpin for CommandId
impl UnwindSafe for CommandId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more