Enum SmsPduType
#[non_exhaustive]pub enum SmsPduType {
Unknown,
Deliver,
Submit,
StatusReport,
CdmaDeliver,
CdmaSubmit,
CdmaCancellation,
CdmaDeliveryAcknowledgement,
CdmaUserAcknowledgement,
CdmaReadAcknowledgement,
Other(u32),
}Expand description
The type of the PDUs of an SMS message.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Unknown
The PDU type is not known.
Deliver
A 3GPP message from the network.
Submit
A 3GPP message to the network.
StatusReport
A 3GPP status report.
CdmaDeliver
A CDMA message from the network.
CdmaSubmit
A CDMA message to the network.
CdmaCancellation
A CDMA cancellation.
CdmaDeliveryAcknowledgement
A CDMA delivery acknowledgement.
CdmaUserAcknowledgement
A CDMA user acknowledgement.
CdmaReadAcknowledgement
A CDMA read acknowledgement.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
§impl SmsPduType
impl SmsPduType
Trait Implementations§
§impl Clone for SmsPduType
impl Clone for SmsPduType
§fn clone(&self) -> SmsPduType
fn clone(&self) -> SmsPduType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SmsPduType
§impl Debug for SmsPduType
impl Debug for SmsPduType
§impl<'de> Deserialize<'de> for SmsPduType
impl<'de> Deserialize<'de> for SmsPduType
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SmsPduType
§impl From<SmsPduType> for u32
impl From<SmsPduType> for u32
§fn from(__value: SmsPduType) -> Self
fn from(__value: SmsPduType) -> Self
Converts to this type from the input type.
§impl From<SmsPduType> for Value<'static>
impl From<SmsPduType> for Value<'static>
§fn from(__value: SmsPduType) -> Self
fn from(__value: SmsPduType) -> Self
Converts to this type from the input type.
§impl From<u32> for SmsPduType
impl From<u32> for SmsPduType
§impl Hash for SmsPduType
impl Hash for SmsPduType
§impl PartialEq for SmsPduType
impl PartialEq for SmsPduType
§impl Serialize for SmsPduType
impl Serialize for SmsPduType
impl StructuralPartialEq for SmsPduType
§impl TryFrom<OwnedValue> for SmsPduType
impl TryFrom<OwnedValue> for SmsPduType
§impl<'__a> TryFrom<Value<'__a>> for SmsPduType
impl<'__a> TryFrom<Value<'__a>> for SmsPduType
§impl Type for SmsPduType
impl Type for SmsPduType
Auto Trait Implementations§
impl Freeze for SmsPduType
impl RefUnwindSafe for SmsPduType
impl Send for SmsPduType
impl Sync for SmsPduType
impl Unpin for SmsPduType
impl UnsafeUnpin for SmsPduType
impl UnwindSafe for SmsPduType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.