Enum sbd::mo::SessionStatus[][src]

pub enum SessionStatus {
    Ok,
    OkMobileTerminatedTooLarge,
    OkLocationUnacceptableQuality,
    Timeout,
    MobileOriginatedTooLarge,
    RFLinkLoss,
    IMEIProtocolAnomaly,
    Prohibited,
}
Expand description

The status of a mobile-originated session.

The descriptions for these codes are taken directly from the DirectIP documentation.

Variants

Ok

The SBD session completed successfully.

OkMobileTerminatedTooLarge

The MO message transfer, if any, was successful. The MT message queued at the GSS is too large to be transferred within a single SBD session.

OkLocationUnacceptableQuality

The MO message transfer, if any, was successful. The reported location was determined to be of unacceptable quality. This value is only applicable to IMEIs using SBD protocol revision 1.

Timeout

The SBD session timed out before session completion.

MobileOriginatedTooLarge

The MO message being transferred by the IMEI is too large to be transerred within a single SBD session.

RFLinkLoss

An RF link loss ocurred during the SBD session.

IMEIProtocolAnomaly

An IMEI protocol anomaly occurred during SBD session.

Prohibited

The IMEI is prohibited from accessing the GSS.

Implementations

Creates a new session status from a code.

Returns an error if the code is unknown.

Examples
use sbd::mo::SessionStatus;
assert!(SessionStatus::new(0).is_ok());
assert!(SessionStatus::new(3).is_err());

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

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

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

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.