pub struct UserDataHeader {
pub components: Vec<UdhComponent>,
}Expand description
A User Data Header itself.
You’ll likely just want to call get_concatenated_sms_data on this to check whether the
message is concatenated.
Fields§
§components: Vec<UdhComponent>Implementations§
Source§impl UserDataHeader
impl UserDataHeader
Sourcepub fn get_concatenated_sms_data(&self) -> Option<ConcatenatedSmsData>
pub fn get_concatenated_sms_data(&self) -> Option<ConcatenatedSmsData>
If there is concatenated SMS data in this header, return it.
Trait Implementations§
Source§impl Clone for UserDataHeader
impl Clone for UserDataHeader
Source§fn clone(&self) -> UserDataHeader
fn clone(&self) -> UserDataHeader
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 moreSource§impl Debug for UserDataHeader
impl Debug for UserDataHeader
Source§impl<'a> TryFrom<&'a [u8]> for UserDataHeader
impl<'a> TryFrom<&'a [u8]> for UserDataHeader
Source§fn try_from(b: &[u8]) -> HuaweiResult<Self>
fn try_from(b: &[u8]) -> HuaweiResult<Self>
Accepts a UDH without the UDH Length octet at the start.
Source§type Error = HuaweiError
type Error = HuaweiError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for UserDataHeader
impl RefUnwindSafe for UserDataHeader
impl Send for UserDataHeader
impl Sync for UserDataHeader
impl Unpin for UserDataHeader
impl UnsafeUnpin for UserDataHeader
impl UnwindSafe for UserDataHeader
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