#[repr(u8)]pub enum DataCoding {
Show 17 variants
McSpecific = 0,
Ia5 = 1,
OctetUnspecified = 2,
Latin1 = 3,
OctetUnspecified2 = 4,
Jis = 5,
Cyrillic = 6,
LatinHebrew = 7,
Ucs2 = 8,
PictogramEncoding = 9,
Iso2022JpMusicCodes = 10,
ExtendedKanjiJis = 13,
Ksc5601 = 14,
GsmMwiControl = 192,
GsmMwiControl2 = 208,
GsmMessageClassControl = 224,
Other(u8),
}Expand description
Defines the encoding scheme of the short message user data.
Variants§
McSpecific = 0
GSM 7-bit default alphabet
Ia5 = 1
IA5 (CCITT T.50)/ASCII (ANSI X3.4).
OctetUnspecified = 2
Octet unspecified (8-bit binary).
Latin1 = 3
Latin 1 (ISO-8859-1).
OctetUnspecified2 = 4
Octet unspecified (8-bit binary) 2.
Jis = 5
JIS (X 0208-1990).
Cyrillic = 6
Cyrillic (ISO-8859-5).
LatinHebrew = 7
Latin/Hebrew (ISO-8859-8).
Ucs2 = 8
UCS2 (ISO/IEC-10646).
PictogramEncoding = 9
Pictogram Encoding.
Iso2022JpMusicCodes = 10
ISO-2022-JP (Music Codes).
ExtendedKanjiJis = 13
Extended Kanji JIS (X 0212-1990).
Ksc5601 = 14
KS C 5601.
GsmMwiControl = 192
GSM MWI control - see [GSM 03.38].
GsmMwiControl2 = 208
GSM MWI control 2- see [GSM 03.38].
GsmMessageClassControl = 224
GSM message class control - see [GSM 03.38].
Other(u8)
Trait Implementations§
Source§impl<'arbitrary> Arbitrary<'arbitrary> for DataCoding
impl<'arbitrary> Arbitrary<'arbitrary> for DataCoding
Source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self from the entirety of the given
unstructured data. Read moreSource§fn size_hint(depth: usize) -> (usize, Option<usize>)
fn size_hint(depth: usize) -> (usize, Option<usize>)
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§fn try_size_hint(
depth: usize,
) -> Result<(usize, Option<usize>), MaxRecursionReached>
fn try_size_hint( depth: usize, ) -> Result<(usize, Option<usize>), MaxRecursionReached>
Get a size hint for how many bytes out of an
Unstructured this type
needs to construct itself. Read moreSource§impl Clone for DataCoding
impl Clone for DataCoding
Source§fn clone(&self) -> DataCoding
fn clone(&self) -> DataCoding
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 DataCoding
impl Debug for DataCoding
Source§impl<'a> Decode<'a> for DataCoding
impl<'a> Decode<'a> for DataCoding
Source§impl Decode for DataCoding
Available on crate feature alloc only.
impl Decode for DataCoding
Available on crate feature
alloc only.Source§impl Default for DataCoding
impl Default for DataCoding
Source§fn default() -> DataCoding
fn default() -> DataCoding
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DataCoding
impl<'de> Deserialize<'de> for DataCoding
Source§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
Source§impl Encode for DataCoding
impl Encode for DataCoding
Source§impl Encode for DataCoding
Available on crate feature alloc only.
impl Encode for DataCoding
Available on crate feature
alloc only.Source§impl From<DataCoding> for u8
impl From<DataCoding> for u8
Source§fn from(value: DataCoding) -> Self
fn from(value: DataCoding) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DataCoding
impl From<u8> for DataCoding
Source§impl Hash for DataCoding
impl Hash for DataCoding
Source§impl Ord for DataCoding
impl Ord for DataCoding
Source§impl PartialEq for DataCoding
impl PartialEq for DataCoding
Source§impl PartialOrd for DataCoding
impl PartialOrd for DataCoding
Source§impl Serialize for DataCoding
impl Serialize for DataCoding
impl Copy for DataCoding
impl Eq for DataCoding
impl StructuralPartialEq for DataCoding
Auto Trait Implementations§
impl Freeze for DataCoding
impl RefUnwindSafe for DataCoding
impl Send for DataCoding
impl Sync for DataCoding
impl Unpin for DataCoding
impl UnwindSafe for DataCoding
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)