pub enum ConcatenatedShortMessageType {
EightBit {
reference: u8,
},
SixteenBit {
reference: u16,
},
}Expand description
Concatenated short message type.
Variants§
EightBit
8-bit reference number concatenated short message.
SixteenBit
16-bit reference number concatenated short message.
Implementations§
Source§impl ConcatenatedShortMessageType
impl ConcatenatedShortMessageType
Sourcepub const fn u8(reference: u8) -> ConcatenatedShortMessageType
pub const fn u8(reference: u8) -> ConcatenatedShortMessageType
Creates a new ConcatenatedShortMessageType::EightBit.
Sourcepub const fn u16(reference: u16) -> ConcatenatedShortMessageType
pub const fn u16(reference: u16) -> ConcatenatedShortMessageType
Creates a new ConcatenatedShortMessageType::SixteenBit.
Sourcepub const fn udh_length(self) -> usize
pub const fn udh_length(self) -> usize
Returns the length of the UDH type in bytes.
Sourcepub const fn concatenated_short_message_unchecked(
self,
total_parts: u8,
part_number: u8,
) -> ConcatenatedShortMessage
pub const fn concatenated_short_message_unchecked( self, total_parts: u8, part_number: u8, ) -> ConcatenatedShortMessage
Creates a new ConcatenatedShortMessagewithout checking invariants.
See ConcatenatedShortMessage8Bit::new_unchecked and ConcatenatedShortMessage16Bit::new_unchecked.
Trait Implementations§
Source§impl Clone for ConcatenatedShortMessageType
impl Clone for ConcatenatedShortMessageType
Source§fn clone(&self) -> ConcatenatedShortMessageType
fn clone(&self) -> ConcatenatedShortMessageType
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 ConcatenatedShortMessageType
impl Debug for ConcatenatedShortMessageType
Source§impl Hash for ConcatenatedShortMessageType
impl Hash for ConcatenatedShortMessageType
Source§impl Ord for ConcatenatedShortMessageType
impl Ord for ConcatenatedShortMessageType
Source§fn cmp(&self, other: &ConcatenatedShortMessageType) -> Ordering
fn cmp(&self, other: &ConcatenatedShortMessageType) -> Ordering
1.21.0§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for ConcatenatedShortMessageType
impl PartialOrd for ConcatenatedShortMessageType
impl Copy for ConcatenatedShortMessageType
impl Eq for ConcatenatedShortMessageType
impl StructuralPartialEq for ConcatenatedShortMessageType
Auto Trait Implementations§
impl Freeze for ConcatenatedShortMessageType
impl RefUnwindSafe for ConcatenatedShortMessageType
impl Send for ConcatenatedShortMessageType
impl Sync for ConcatenatedShortMessageType
impl Unpin for ConcatenatedShortMessageType
impl UnwindSafe for ConcatenatedShortMessageType
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)