Struct sbd::mobile_originated::MobileOriginated [] [src]

pub struct MobileOriginated {
    // some fields omitted
}

A mobile originated (MO) message;

Methods

impl MobileOriginated
[src]

fn from_path<P: AsRef<Path>>(path: P) -> Result<MobileOriginated>

Reads a mobile originated message from a Path.

Examples

use sbd::mobile_originated::MobileOriginated;
MobileOriginated::from_path("data/0-mo.sbd");

fn cdr_reference(&self) -> u32

Returns the cdr reference, also called the auto ID.

This is a unique value given each call data record.

fn imei(&self) -> &[u8]

Returns the IMEI number.

This is unique to each unit, and is always 15 characters long.

fn session_status(&self) -> SessionStatus

Returns the status of the mobile originated session.

fn momsn(&self) -> u16

Returns the mobile originated message sequence number.

This value is set by the IMEI, and is incremented for every successful SBD session.

fn mtmsn(&self) -> u16

Returns the mobile terminated message squence number.

This value is set by the Gateway when the message is queued for delivery. The MTMSN is tranferred to the IMEI as part of the MT payload transfer, regardless of the session success.

fn time(&self) -> u32

Returns the UTC timestamp in the form of an epoch integer.

This is the time of the session between the IMEI and the Gateway, in seconds since the start of the epoch: 1/1/1970 00:00:00.

fn payload(&self) -> &Vec<u8>

Returns the MO payload.

Trait Implementations

impl Debug for MobileOriginated
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for MobileOriginated
[src]

fn default() -> MobileOriginated

Returns the "default value" for a type. Read more