Enum huawei_modem::error_codes::CmsError
source · pub enum CmsError {
Show 45 variants
UnassignedNumber,
OperatorDeterminedBarring,
CallBarred,
TransferRejected,
DestinationOutOfService,
UnidentifiedSubscriber,
FacilityRejected,
UnknownSubscriber,
NetworkOutOfOrder,
TemporaryFailure,
Congestion,
ResourcesUnavailable,
NotSubscribed,
NotImplemented,
InvalidReferenceValue,
InvalidMessage,
InvalidMandatoryInformation,
NonexistentMessageType,
IncompatibleMessage,
NonexistentInformationElement,
ProtocolError,
InternetworkingError,
MeFailure,
SmsServiceReserved,
NotAllowed,
NotSupported,
InvalidPduModeParameter,
InvalidTextModeParameter,
SimNotInserted,
SimPinRequired,
PhSimPinRequired,
SimFailure,
SimBusy,
SimWrong,
SimPukRequired,
SimPin2Required,
SimPuk2Required,
MemoryFailure,
InvalidMemoryIndex,
MemoryFull,
SmscAddressUnknown,
NoNetworkService,
NetworkTimeout,
NoCnmaAcknowledgementExpected,
UnknownError,
}
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
OperatorDeterminedBarring
CallBarred
TransferRejected
DestinationOutOfService
UnidentifiedSubscriber
FacilityRejected
UnknownSubscriber
NetworkOutOfOrder
TemporaryFailure
Congestion
NotSubscribed
NotImplemented
InvalidReferenceValue
InvalidMessage
InvalidMandatoryInformation
NonexistentMessageType
IncompatibleMessage
NonexistentInformationElement
ProtocolError
InternetworkingError
MeFailure
SmsServiceReserved
NotAllowed
NotSupported
InvalidPduModeParameter
InvalidTextModeParameter
SimNotInserted
SimPinRequired
PhSimPinRequired
SimFailure
SimBusy
SimWrong
SimPukRequired
SimPin2Required
SimPuk2Required
MemoryFailure
InvalidMemoryIndex
MemoryFull
SmscAddressUnknown
NoNetworkService
NetworkTimeout
NoCnmaAcknowledgementExpected
UnknownError
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 PartialEq<CmsError> for CmsError
impl PartialEq<CmsError> for CmsError
source§impl PartialOrd<CmsError> for CmsError
impl PartialOrd<CmsError> for CmsError
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for CmsError
impl Eq for CmsError
impl StructuralEq for CmsError
impl StructuralPartialEq for CmsError
Auto Trait Implementations§
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