Enum sbd::mo::InformationElement[][src]

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)

Tuple Fields

0: Header

Information element holding the mobile-originated header.

Payload(Vec<u8>)

Tuple Fields

0: Vec<u8>

The mobile originated payload.

LocationInformation([u8; 7])

Tuple Fields

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

Reads this information element from a Read.

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

Returns true if this information element is empty.

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

Writes this information element to a Write.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.