SmsDeliveryReportStatus

Enum SmsDeliveryReportStatus 

Source
#[repr(u8)]
pub enum SmsDeliveryReportStatus {
Show 26 variants ReceivedBySme = 0, ForwardedButUnconfirmed = 1, ReplacedBySc = 2, Congestion = 32, SmeBusy = 33, NoResponseFromSme = 34, ServiceRejected = 35, QualityOfServiceNotAvailable = 36, ErrorInSme = 37, RemoteProcedureError = 64, IncompatibleDestination = 65, ConnectionRejectedBySme = 66, NotObtainable = 67, QualityOfServiceNotAvailablePermanent = 68, NoInterworkingAvailable = 69, SmValidityPeriodExpired = 70, SmDeletedByOriginatingSme = 71, SmDeletedByScAdministration = 72, SmDoesNotExist = 73, CongestionNoRetry = 96, SmeBusyNoRetry = 97, NoResponseFromSmeNoRetry = 98, ServiceRejectedNoRetry = 99, QualityOfServiceNotAvailableNoRetry = 100, ErrorInSmeNoRetry = 101, Unknown(u8),
}
Expand description

Variants§

§

ReceivedBySme = 0

Short message received by the SME successfully

§

ForwardedButUnconfirmed = 1

Short message forwarded by the SC to the SME but delivery confirmation unavailable

§

ReplacedBySc = 2

Short message replaced by the SC

§

Congestion = 32

Network congestion preventing delivery, SC will retry

§

SmeBusy = 33

SME is busy, SC will retry delivery

§

NoResponseFromSme = 34

No response from SME, SC will retry delivery

§

ServiceRejected = 35

Service rejected by network, SC will retry delivery

§

QualityOfServiceNotAvailable = 36

Quality of service not available, SC will retry delivery

§

ErrorInSme = 37

Error in SME, SC will retry delivery

§

RemoteProcedureError = 64

Remote procedure error - permanent failure

§

IncompatibleDestination = 65

Incompatible destination - permanent failure

§

ConnectionRejectedBySme = 66

Connection rejected by SME - permanent failure

§

NotObtainable = 67

Destination not obtainable - permanent failure

§

QualityOfServiceNotAvailablePermanent = 68

Quality of service not available - permanent failure

§

NoInterworkingAvailable = 69

No interworking available - permanent failure

§

SmValidityPeriodExpired = 70

SM validity period expired - permanent failure

§

SmDeletedByOriginatingSme = 71

SM deleted by originating SME - permanent failure

§

SmDeletedByScAdministration = 72

SM deleted by SC administration - permanent failure

§

SmDoesNotExist = 73

SM does not exist in SC - permanent failure

§

CongestionNoRetry = 96

Network congestion, SC has stopped retry attempts

§

SmeBusyNoRetry = 97

SME busy, SC has stopped retry attempts

§

NoResponseFromSmeNoRetry = 98

No response from SME, SC has stopped retry attempts

§

ServiceRejectedNoRetry = 99

Service rejected, SC has stopped retry attempts

§

QualityOfServiceNotAvailableNoRetry = 100

Quality of service not available, SC has stopped retry attempts

§

ErrorInSmeNoRetry = 101

Error in SME, SC has stopped retry attempts

§

Unknown(u8)

Unknown or reserved status code - treated as service rejected per spec

Implementations§

Source§

impl SmsDeliveryReportStatus

Source

pub fn is_successful(&self) -> bool

Returns true if the SMS was successfully delivered to the SME

Source

pub fn is_temporary_retrying(&self) -> bool

Returns true if this is a temporary error where SC is still trying

Source

pub fn is_permanent_error(&self) -> bool

Returns true if this is a permanent error (no more delivery attempts)

Source

pub fn is_temporary_no_retry(&self) -> bool

Returns true if this is a temporary error where SC has stopped trying

Source

pub fn to_status_group(&self) -> SmsDeliveryReportStatusGroup

Converts the status to a simplified status group for easier categorization

Trait Implementations§

Source§

impl Clone for SmsDeliveryReportStatus

Source§

fn clone(&self) -> SmsDeliveryReportStatus

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SmsDeliveryReportStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SmsDeliveryReportStatus

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl From<MessageStatus> for SmsDeliveryReportStatus

Available on crate feature pdu only.
Source§

fn from(status: MessageStatus) -> Self

Converts to this type from the input type.
Source§

impl From<SmsDeliveryReportStatus> for SmsDeliveryReportStatusGroup

Source§

fn from(status: SmsDeliveryReportStatus) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for SmsDeliveryReportStatus

Source§

fn from(value: u8) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for SmsDeliveryReportStatus

Source§

fn eq(&self, other: &SmsDeliveryReportStatus) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for SmsDeliveryReportStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Eq for SmsDeliveryReportStatus

Source§

impl StructuralPartialEq for SmsDeliveryReportStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,