Struct huawei_modem::gsm_encoding::udh::UserDataHeader
source · 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 copy of the value. Read more
1.0.0 · 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.
§type Error = HuaweiError
type Error = HuaweiError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for UserDataHeader
impl Send for UserDataHeader
impl Sync for UserDataHeader
impl Unpin 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