[][src]Enum sbd_lib::information_element::InformationElement

pub enum InformationElement {
    Header(Header),
    MOPayload(Vec<u8>),
    MTPayload(Vec<u8>),
    Status(Status),
    LocationInformation(LocationInformation),
}

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

impl InformationElement[src]

pub fn read_single<R: Read>(read: R) -> Result<Self>[src]

Reads this information element from a Read.

pub fn parse<R: Read>(read: R) -> Result<Vec<Self>>[src]

pub fn len(&self) -> usize[src]

Returns the length of this information element, including the information element header.

pub fn is_empty(&self) -> bool[src]

Returns true if this information element is empty.

At this point, only can be true if the payload is empty.

pub fn write_to<W: Write>(&self, write: &mut W) -> Result<()>[src]

Writes this information element to a Write.

Trait Implementations

impl Clone for InformationElement[src]

impl Debug for InformationElement[src]

impl Eq for InformationElement[src]

impl From<ConfirmationStatus> for InformationElement[src]

impl From<ConfirmationStatus> for InformationElement[src]

impl From<Header> for InformationElement[src]

impl From<Header> for InformationElement[src]

impl From<LocationInformation> for InformationElement[src]

impl PartialEq<InformationElement> for InformationElement[src]

impl StructuralEq for InformationElement[src]

impl StructuralPartialEq for InformationElement[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.