Enum sbd::mo::InformationElement
source · pub enum InformationElement {
Header(Header),
Payload(Vec<u8>),
LocationInformation([u8; 7]),
}
Expand description
A mobile-originated information element, or IE.
These are the building blocks of a SBD message.
Variants§
Header(Header)
Information element holding the mobile-originated header.
Payload(Vec<u8>)
The mobile originated payload.
LocationInformation([u8; 7])
The mobile originated location information.
FIXME I don’t have a test case for this, yet, so I haven’t actually broken out the location information into fields.
See #9.
Implementations§
source§impl InformationElement
impl InformationElement
sourcepub fn read_from<R: Read>(read: R) -> Result<InformationElement, Error>
pub fn read_from<R: Read>(read: R) -> Result<InformationElement, Error>
Reads this information element from a Read
.
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<Header> for InformationElement
impl From<Header> for InformationElement
source§fn from(header: Header) -> InformationElement
fn from(header: Header) -> InformationElement
Converts to this type from the input type.
source§impl PartialEq<InformationElement> for InformationElement
impl PartialEq<InformationElement> for InformationElement
source§fn eq(&self, other: &InformationElement) -> bool
fn eq(&self, other: &InformationElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for InformationElement
impl StructuralEq for InformationElement
impl StructuralPartialEq for InformationElement
Auto Trait Implementations§
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