pub enum SessionStatus {
Ok = 0,
OkMobileTerminatedTooLarge = 1,
OkLocationUnacceptableQuality = 2,
Timeout = 10,
MobileOriginatedTooLarge = 12,
RFLinkLoss = 13,
IMEIProtocolAnomaly = 14,
Prohibited = 15,
}
Expand description
The status of a mobile-originated session.
The descriptions for these codes are taken directly from the DirectIP
documentation.
Variants§
Ok = 0
The SBD session completed successfully.
OkMobileTerminatedTooLarge = 1
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 = 2
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 = 10
The SBD session timed out before session completion.
MobileOriginatedTooLarge = 12
The MO message being transferred by the IMEI is too large to be transerred within a single SBD session.
RFLinkLoss = 13
An RF link loss ocurred during the SBD session.
IMEIProtocolAnomaly = 14
An IMEI protocol anomaly occurred during SBD session.
Prohibited = 15
The IMEI is prohibited from accessing the GSS.
Implementations§
Source§impl SessionStatus
impl SessionStatus
Sourcepub fn new(n: u8) -> Result<SessionStatus>
pub fn new(n: u8) -> Result<SessionStatus>
Creates a new session status from a code.
Returns an error if the code is unknown.
§Examples
use sbd_lib::mo::SessionStatus;
assert!(SessionStatus::new(0).is_ok());
assert!(SessionStatus::new(3).is_err());
pub fn value(&self) -> i8
pub fn is_ok(&self) -> bool
Trait Implementations§
Source§impl Clone for SessionStatus
impl Clone for SessionStatus
Source§fn clone(&self) -> SessionStatus
fn clone(&self) -> SessionStatus
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more