pub enum InformationElement {
Header(Header),
MOPayload(Vec<u8>),
MTPayload(Vec<u8>),
Status(Status),
LocationInformation(LocationInformation),
}
Expand description
A information element, or IE.
These are the building blocks of a SBD message.
Variants§
Header(Header)
Information element holding the header MO or MT.
MOPayload(Vec<u8>)
The mobile originated payload.
MTPayload(Vec<u8>)
The mobile originated payload.
Status(Status)
Message Delivery Confirmation
LocationInformation(LocationInformation)
The mobile originated location information.
Implementations§
Source§impl InformationElement
impl InformationElement
Sourcepub fn read_single<R: Read>(read: R) -> Result<Self>
pub fn read_single<R: Read>(read: R) -> Result<Self>
Reads this information element from a Read
.
pub fn parse<R: Read>(read: R) -> Result<Vec<Self>>
Sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the length of this information element, including the information element header.
Trait Implementations§
Source§impl Clone for InformationElement
impl Clone for InformationElement
Source§fn clone(&self) -> InformationElement
fn clone(&self) -> InformationElement
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 InformationElement
impl Debug for InformationElement
Source§impl From<ConfirmationStatus> for InformationElement
impl From<ConfirmationStatus> for InformationElement
Source§fn from(status: ConfirmationStatus) -> Self
fn from(status: ConfirmationStatus) -> Self
Converts to this type from the input type.
Source§impl From<ConfirmationStatus> for InformationElement
impl From<ConfirmationStatus> for InformationElement
Source§fn from(status: ConfirmationStatus) -> Self
fn from(status: ConfirmationStatus) -> Self
Converts to this type from the input type.
Source§impl From<Header> for InformationElement
impl From<Header> for InformationElement
Source§impl From<Header> for InformationElement
impl From<Header> for InformationElement
Source§impl From<LocationInformation> for InformationElement
impl From<LocationInformation> for InformationElement
Source§fn from(location: LocationInformation) -> Self
fn from(location: LocationInformation) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InformationElement
impl PartialEq for InformationElement
impl Eq for InformationElement
impl StructuralPartialEq for InformationElement
Auto Trait Implementations§
impl Freeze for InformationElement
impl RefUnwindSafe for InformationElement
impl Send for InformationElement
impl Sync for InformationElement
impl Unpin for InformationElement
impl UnwindSafe for InformationElement
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