ErrorCode

Struct ErrorCode 

#[repr(transparent)]
pub struct ErrorCode(pub c_int);

Tuple Fields§

§0: c_int

Implementations§

§

impl ErrorCode

pub const SUCCESS: Self

Success.

pub const SUCCESS_CONDITIONAL: Self

Conditional success.

pub const MCM_SERVICES_NOT_AVAILABLE: Self

MCM services not available.

pub const GENERIC: Self

Generic error.

pub const BADPARM: Self

Bad parameter.

pub const MEMORY: Self

Memory error.

pub const INVALID_STATE: Self

Invalid state.

pub const MALFORMED_MSG: Self

Malformed message.

pub const NO_MEMORY: Self

No memory.

pub const INTERNAL: Self

Internal error.

pub const ABORTED: Self

Action was aborted.

pub const CLIENT_IDS_EXHAUSTED: Self

Client IDs have been exhausted.

pub const UNABORTABLE_TRANSACTION: Self

Unabortable transaction.

pub const INVALID_CLIENT_ID: Self

Invalid client ID.

pub const NO_THRESHOLDS: Self

No thresholds.

pub const INVALID_HANDLE: Self

Invalid handle.

pub const INVALID_PROFILE: Self

Invalid profile.

pub const INVALID_PINID: Self

Invalid PIN ID.

pub const INCORRECT_PIN: Self

Incorrect PIN.

pub const NO_NETWORK_FOUND: Self

No network found.

pub const CALL_FAILED: Self

Call failed.

pub const OUT_OF_CALL: Self

Out of call.

pub const NOT_PROVISIONED: Self

Not provisioned.

pub const MISSING_ARG: Self

Missing argument.

pub const ARG_TOO_LONG: Self

Argument is too long.

pub const INVALID_TX_ID: Self

Invalid Tx ID.

pub const DEVICE_IN_USE: Self

Device is in use.

pub const OP_NETWORK_UNSUPPORTED: Self

OP network is not supported.

pub const OP_DEVICE_UNSUPPORTED: Self

OP device is not supported.

pub const NO_EFFECT: Self

No effect.

pub const NO_FREE_PROFILE: Self

No free profile.

pub const INVALID_PDP_TYPE: Self

Invalid PDP type.

pub const INVALID_TECH_PREF: Self

Invalid technical preference.

pub const INVALID_PROFILE_TYPE: Self

Invalid profile type.

pub const INVALID_SERVICE_TYPE: Self

Invalid service type.

pub const INVALID_REGISTER_ACTION: Self

Invalid register action.

pub const INVALID_PS_ATTACH_ACTION: Self

Invalid PS attach action.

pub const AUTHENTICATION_FAILED: Self

Authentication failed.

pub const PIN_BLOCKED: Self

PIN is blocked.

pub const PIN_PERM_BLOCKED: Self

PIN is permanently blocked.

pub const SIM_NOT_INITIALIZED: Self

SIM is not initialized.

pub const MAX_QOS_REQUESTS_IN_USE: Self

Maximum QoS requests are in use.

pub const INCORRECT_FLOW_FILTER: Self

Incorrect flow filter.

pub const NETWORK_QOS_UNAWARE: Self

Network QoS is unaware.

pub const INVALID_ID: Self

Invalid ID.

pub const INVALID_QOS_ID: Self

Invalid QoS ID.

pub const REQUESTED_NUM_UNSUPPORTED: Self

Requested number is not supported.

pub const INTERFACE_NOT_FOUND: Self

Interface was not found.

pub const FLOW_SUSPENDED: Self

Flow is suspended.

pub const INVALID_DATA_FORMAT: Self

Invalid data format.

pub const GENERAL: Self

General error.

pub const UNKNOWN: Self

Unknown error.

pub const INVALID_ARG: Self

Invalid argument.

pub const INVALID_INDEX: Self

Invalid index.

pub const NO_ENTRY: Self

No entry.

pub const DEVICE_STORAGE_FULL: Self

Device storage is full.

pub const DEVICE_NOT_READY: Self

Device is not ready.

pub const NETWORK_NOT_READY: Self

Network is not ready.

pub const CAUSE_CODE: Self

Cause code error.

pub const MESSAGE_NOT_SENT: Self

Message was not sent.

pub const MESSAGE_DELIVERY_FAILURE: Self

Message delivery failure.

pub const INVALID_MESSAGE_ID: Self

Invalid message ID.

pub const ENCODING: Self

Encoding error.

pub const AUTHENTICATION_LOCK: Self

Authentication lock error.

pub const INVALID_TRANSITION: Self

Invalid transition.

pub const NOT_A_MCAST_IFACE: Self

Not an MCast interface.

pub const MAX_MCAST_REQUESTS_IN_USE: Self

Maximum MCast requests are in use.

pub const INVALID_MCAST_HANDLE: Self

Invalid MCast handle.

pub const INVALID_IP_FAMILY_PREF: Self

Invalid IP family preference.

pub const SESSION_INACTIVE: Self

Session is inactive.

pub const SESSION_INVALID: Self

Session is invalid.

pub const SESSION_OWNERSHIP: Self

Session ownership error.

pub const INSUFFICIENT_RESOURCES: Self

Insufficient resources.

pub const DISABLED: Self

Disabled.

pub const INVALID_OPERATION: Self

Invalid operation.

pub const INVALID_CMD: Self

Invalid command.

pub const TPDU_TYPE: Self

Transfer Protocol data unit type error.

pub const SMSC_ADDR: Self

Short message service center address error.

pub const INFO_UNAVAILABLE: Self

Information is not available.

pub const SEGMENT_TOO_LONG: Self

Segment is too long.

pub const SEGMENT_ORDER: Self

Segment order error.

pub const BUNDLING_NOT_SUPPORTED: Self

Bundling is not supported.

pub const OP_PARTIAL_FAILURE: Self

OP partial failure.

pub const POLICY_MISMATCH: Self

Policy mismatch.

pub const SIM_FILE_NOT_FOUND: Self

SIM file was not found.

pub const EXTENDED_INTERNAL: Self

Extended internal error.

pub const ACCESS_DENIED: Self

Access is denied.

pub const HARDWARE_RESTRICTED: Self

Hardware is restricted.

pub const ACK_NOT_SENT: Self

Acknowledgement was not sent.

pub const INJECT_TIMEOUT: Self

Inject timeout error.

pub const INCOMPATIBLE_STATE: Self

Incompatible state.

pub const FDN_RESTRICT: Self

Fixed dialing number restrict error.

pub const SUPS_FAILURE_CAUSE: Self

SUPS failure cause.

pub const NO_RADIO: Self

No radio.

pub const NOT_SUPPORTED: Self

Not supported.

pub const NO_SUBSCRIPTION: Self

No subscription.

pub const CARD_CALL_CONTROL_FAILED: Self

Card call control failed.

pub const NETWORK_ABORTED: Self

Network was aborted.

pub const MSG_BLOCKED: Self

Message was blocked.

pub const INVALID_SESSION_TYPE: Self

Invalid session type.

pub const INVALID_PB_TYPE: Self

Invalid phonebook type.

pub const NO_SIM: Self

No SIM was found.

pub const PB_NOT_READY: Self

Phonebook not ready.

pub const PIN_RESTRICTION: Self

PIN restriction.

pub const PIN2_RESTRICTION: Self

PIN2 restriction.

pub const PUK_RESTRICTION: Self

PIN unlocking key restriction.

pub const PUK2_RESTRICTION: Self

PIN unlocking key2 restriction.

pub const PB_ACCESS_RESTRICTED: Self

Phonebook access is restricted.

pub const PB_DELETE_IN_PROG: Self

Phonebook delete is in progress.

pub const PB_TEXT_TOO_LONG: Self

Phonebook text is too long.

pub const PB_NUMBER_TOO_LONG: Self

Phonebook number is too long.

pub const PB_HIDDEN_KEY_RESTRICTION: Self

Phonebook hidden key restriction.

pub const PB_NOT_AVAILABLE: Self

Phonebook is not available.

pub const DEVICE_MEMORY_ERROR: Self

Device memory error.

pub const SIM_PIN_BLOCKED: Self

SIM PIN is blocked.

pub const SIM_PIN_NOT_INITIALIZED: Self

SIM PIN is not initialized.

pub const SIM_INVALID_PIN: Self

SIM PIN is invalid.

pub const SIM_INVALID_PERSO_CK: Self

SIM invalid personalization CK.

pub const SIM_PERSO_BLOCKED: Self

SIM personalization blocked.

pub const SIM_PERSO_INVALID_DATA: Self

SIM personalization contains invalid data.

pub const SIM_ACCESS_DENIED: Self

SIM access is denied.

pub const SIM_INVALID_FILE_PATH: Self

SIM file path is invalid.

pub const SIM_SERVICE_NOT_SUPPORTED: Self

SIM service is not supported.

pub const SIM_AUTH_FAIL: Self

SIM authorization failure.

pub const SIM_PIN_PERM_BLOCKED: Self

SIM PIN is permanently blocked.

Trait Implementations§

§

impl Clone for ErrorCode

§

fn clone(&self) -> ErrorCode

Returns a duplicate of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
§

impl Debug for ErrorCode

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq for ErrorCode

§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

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

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

impl Serialize for ErrorCode

§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
§

impl Copy for ErrorCode

§

impl Eq for ErrorCode

§

impl StructuralPartialEq for ErrorCode

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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>,

Source§

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.