Enum SmsState
#[non_exhaustive]pub enum SmsState {
Unknown,
Stored,
Receiving,
Received,
Sending,
Sent,
Other(u32),
}Expand description
The state 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 state is not known.
Stored
The message is stored on the device.
Receiving
The device still receives parts of the message.
Received
The message is complete.
Sending
The device is sending the message.
Sent
The device sent the message.
Other(u32)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
impl Copy for SmsState
§impl<'de> Deserialize<'de> for SmsState
impl<'de> Deserialize<'de> for SmsState
§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 SmsState
impl StructuralPartialEq for SmsState
Auto Trait Implementations§
impl Freeze for SmsState
impl RefUnwindSafe for SmsState
impl Send for SmsState
impl Sync for SmsState
impl Unpin for SmsState
impl UnsafeUnpin for SmsState
impl UnwindSafe for SmsState
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.