pub enum CmsError {
Show 45 variants
UnassignedNumber = 1,
OperatorDeterminedBarring = 8,
CallBarred = 10,
TransferRejected = 21,
DestinationOutOfService = 27,
UnidentifiedSubscriber = 28,
FacilityRejected = 29,
UnknownSubscriber = 30,
NetworkOutOfOrder = 38,
TemporaryFailure = 41,
Congestion = 42,
ResourcesUnavailable = 47,
NotSubscribed = 50,
NotImplemented = 69,
InvalidReferenceValue = 81,
InvalidMessage = 95,
InvalidMandatoryInformation = 96,
NonexistentMessageType = 97,
IncompatibleMessage = 98,
NonexistentInformationElement = 99,
ProtocolError = 111,
InternetworkingError = 127,
MeFailure = 300,
SmsServiceReserved = 301,
NotAllowed = 302,
NotSupported = 303,
InvalidPduModeParameter = 304,
InvalidTextModeParameter = 305,
SimNotInserted = 310,
SimPinRequired = 311,
PhSimPinRequired = 312,
SimFailure = 313,
SimBusy = 314,
SimWrong = 315,
SimPukRequired = 316,
SimPin2Required = 317,
SimPuk2Required = 318,
MemoryFailure = 320,
InvalidMemoryIndex = 321,
MemoryFull = 322,
SmscAddressUnknown = 330,
NoNetworkService = 331,
NetworkTimeout = 332,
NoCnmaAcknowledgementExpected = 340,
UnknownError = 500,
}Expand description
A CMS (SMS-related) error code.
I can’t be bothered to write out all the error code meanings twice. If you hit the [src]
button in rustdoc, it’ll take you to the definition of this enum, where the meanings of each
variant are annotated with #[fail(display)] attributes.
Obviously, this means that this enum has a rather useful Display implementation.
Variants§
UnassignedNumber = 1
OperatorDeterminedBarring = 8
CallBarred = 10
TransferRejected = 21
DestinationOutOfService = 27
UnidentifiedSubscriber = 28
FacilityRejected = 29
UnknownSubscriber = 30
NetworkOutOfOrder = 38
TemporaryFailure = 41
Congestion = 42
NotSubscribed = 50
NotImplemented = 69
InvalidReferenceValue = 81
InvalidMessage = 95
InvalidMandatoryInformation = 96
NonexistentMessageType = 97
IncompatibleMessage = 98
NonexistentInformationElement = 99
ProtocolError = 111
InternetworkingError = 127
MeFailure = 300
SmsServiceReserved = 301
NotAllowed = 302
NotSupported = 303
InvalidPduModeParameter = 304
InvalidTextModeParameter = 305
SimNotInserted = 310
SimPinRequired = 311
PhSimPinRequired = 312
SimFailure = 313
SimBusy = 314
SimWrong = 315
SimPukRequired = 316
SimPin2Required = 317
SimPuk2Required = 318
MemoryFailure = 320
InvalidMemoryIndex = 321
MemoryFull = 322
SmscAddressUnknown = 330
NoNetworkService = 331
NetworkTimeout = 332
NoCnmaAcknowledgementExpected = 340
UnknownError = 500
Trait Implementations§
Source§impl Fail for CmsError
impl Fail for CmsError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read moreSource§impl FromPrimitive for CmsError
impl FromPrimitive for CmsError
Source§fn from_i64(n: i64) -> Option<Self>
fn from_i64(n: i64) -> Option<Self>
Converts an
i64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u64(n: u64) -> Option<Self>
fn from_u64(n: u64) -> Option<Self>
Converts an
u64 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_isize(n: isize) -> Option<Self>
fn from_isize(n: isize) -> Option<Self>
Converts an
isize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i8(n: i8) -> Option<Self>
fn from_i8(n: i8) -> Option<Self>
Converts an
i8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i16(n: i16) -> Option<Self>
fn from_i16(n: i16) -> Option<Self>
Converts an
i16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i32(n: i32) -> Option<Self>
fn from_i32(n: i32) -> Option<Self>
Converts an
i32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_i128(n: i128) -> Option<Self>
fn from_i128(n: i128) -> Option<Self>
Converts an
i128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§fn from_usize(n: usize) -> Option<Self>
fn from_usize(n: usize) -> Option<Self>
Converts a
usize to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u8(n: u8) -> Option<Self>
fn from_u8(n: u8) -> Option<Self>
Converts an
u8 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u16(n: u16) -> Option<Self>
fn from_u16(n: u16) -> Option<Self>
Converts an
u16 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u32(n: u32) -> Option<Self>
fn from_u32(n: u32) -> Option<Self>
Converts an
u32 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned.Source§fn from_u128(n: u128) -> Option<Self>
fn from_u128(n: u128) -> Option<Self>
Converts an
u128 to return an optional value of this type. If the
value cannot be represented by this type, then None is returned. Read moreSource§impl Ord for CmsError
impl Ord for CmsError
Source§impl PartialOrd for CmsError
impl PartialOrd for CmsError
impl Copy for CmsError
impl Eq for CmsError
impl StructuralPartialEq for CmsError
Auto Trait Implementations§
impl Freeze for CmsError
impl RefUnwindSafe for CmsError
impl Send for CmsError
impl Sync for CmsError
impl Unpin for CmsError
impl UnwindSafe for CmsError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more