#[repr(u8)]pub enum MessageType {
Default = 0,
ShortMessageContainsMCDeliveryReceipt = 4,
ShortMessageContainsIntermediateDeliveryNotification = 32,
Other(u8),
}Expand description
Message Type (bits 2 and 5).
Variants§
Default = 0
Default message Type (i.e. normal message).
ShortMessageContainsMCDeliveryReceipt = 4
Short Message contains MC Delivery Receipt.
ShortMessageContainsIntermediateDeliveryNotification = 32
Short Message contains Intermediate Delivery Notification.
Other(u8)
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessageType
impl Debug for MessageType
Source§impl<'a> Decode<'a> for MessageType
impl<'a> Decode<'a> for MessageType
Source§fn decode(src: &'a [u8]) -> Result<(MessageType, usize), DecodeError>
fn decode(src: &'a [u8]) -> Result<(MessageType, usize), DecodeError>
Decode a value from a slice.
Source§impl Decode for MessageType
Available on crate feature alloc only.
impl Decode for MessageType
Available on crate feature
alloc only.Source§fn decode(src: &mut BytesMut) -> Result<(MessageType, usize), DecodeError>
fn decode(src: &mut BytesMut) -> Result<(MessageType, usize), DecodeError>
Decode a value from a buffer.
Source§impl Default for MessageType
impl Default for MessageType
Source§fn default() -> MessageType
fn default() -> MessageType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MessageType, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Encode for MessageType
impl Encode for MessageType
Source§impl Encode for MessageType
Available on crate feature alloc only.
impl Encode for MessageType
Available on crate feature
alloc only.Source§impl From<u8> for MessageType
impl From<u8> for MessageType
Source§fn from(value: u8) -> MessageType
fn from(value: u8) -> MessageType
Converts to this type from the input type.
Source§impl Hash for MessageType
impl Hash for MessageType
Source§impl Ord for MessageType
impl Ord for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl PartialOrd for MessageType
impl PartialOrd for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for MessageType
impl Eq for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnwindSafe for MessageType
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)