Struct smpp_pdu::pdu::SubmitSmPdu [−][src]
pub struct SubmitSmPdu(pub SmData);
Implementations
pub fn new(
service_type: &str,
source_addr_ton: u8,
source_addr_npi: u8,
source_addr: &str,
dest_addr_ton: u8,
dest_addr_npi: u8,
destination_addr: &str,
esm_class: u8,
protocol_id: u8,
priority_flag: u8,
schedule_delivery_time: &str,
validity_period: &str,
registered_delivery: u8,
replace_if_present_flag: u8,
data_coding: u8,
sm_default_msg_id: u8,
short_message: &[u8],
tlvs: Tlvs
) -> Result<Self, PduParseError>
pub fn parse(
bytes: &mut dyn BufRead,
command_status: u32
) -> Result<SubmitSmPdu, PduParseError>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for SubmitSmPdu
impl Send for SubmitSmPdu
impl Sync for SubmitSmPdu
impl Unpin for SubmitSmPdu
impl UnwindSafe for SubmitSmPdu