Enum atat::CmsError

source ·
#[repr(u16)]
pub enum CmsError {
Show 23 variants MeFailure = 300, SmsServiceReserved = 301, NotAllowed = 302, NotSupported = 303, InvalidPduParameter = 304, InvalidTextParameter = 305, SimNotInserted = 310, SimPin = 311, PhSimPin = 312, SimFailure = 313, SimBusy = 314, SimWrong = 315, SimPuk = 316, SimPin2 = 317, SimPuk2 = 318, MemoryFailure = 320, InvalidIndex = 321, MemoryFull = 322, SmscAddressUnknown = 330, NoNetwork = 331, NetworkTimeout = 332, NoCnmaAckExpected = 340, Unknown = 500,
}
Expand description

Enumeration of message errors, as defined in 3GPP TS 27.005 version 10 section 3.2.5.

0 -> 127 per 3GPP TS 24.011 [6] clause E.2 128 -> 255 per 3GPP TS 23.040 [3] clause 9.2.3.22

Variants§

§

MeFailure = 300

nick=MeFailure

§

SmsServiceReserved = 301

nick=SmsServiceReserved

§

NotAllowed = 302

nick=NotAllowed

§

NotSupported = 303

nick=NotSupported

§

InvalidPduParameter = 304

nick=InvalidPduParameter

§

InvalidTextParameter = 305

nick=InvalidTextParameter

§

SimNotInserted = 310

nick=SimNotInserted

§

SimPin = 311

nick=SimPin

§

PhSimPin = 312

nick=PhSimPin

§

SimFailure = 313

nick=SimFailure

§

SimBusy = 314

nick=SimBusy

§

SimWrong = 315

nick=SimWrong

§

SimPuk = 316

nick=SimPuk

§

SimPin2 = 317

nick=SimPin2

§

SimPuk2 = 318

nick=SimPuk2

§

MemoryFailure = 320

nick=MemoryFailure

§

InvalidIndex = 321

nick=InvalidIndex

§

MemoryFull = 322

nick=MemoryFull

§

SmscAddressUnknown = 330

nick=SmscAddressUnknown

§

NoNetwork = 331

nick=NoNetwork

§

NetworkTimeout = 332

nick=NetworkTimeout

§

NoCnmaAckExpected = 340

nick=NoCnmaAckExpected

§

Unknown = 500

nick=Unknown

Implementations§

source§

impl CmsError

source

pub const fn from_msg(s: &[u8]) -> Self

Trait Implementations§

source§

impl Clone for CmsError

source§

fn clone(&self) -> CmsError

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CmsError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Display for CmsError

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl From<u16> for CmsError

source§

fn from(v: u16) -> Self

Converts to this type from the input type.
source§

impl PartialEq for CmsError

source§

fn eq(&self, other: &CmsError) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for CmsError

source§

impl Eq for CmsError

source§

impl StructuralPartialEq for CmsError

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.