Skip to main content

AbilityRuntimeErrorCode

Struct AbilityRuntimeErrorCode 

Source
#[repr(transparent)]
pub struct AbilityRuntimeErrorCode(pub NonZero<c_uint>);
Available on crate feature api-13 only.
Expand description

Enumerates the error codes.

Available since API-level: 13

Tuple Fields§

§0: NonZero<c_uint>

Implementations§

Source§

impl AbilityRuntimeErrorCode

Source

pub const PERMISSION_DENIED: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

permission denied.

Available since API-level: 15

Source

pub const PARAM_INVALID: AbilityRuntimeErrorCode

Invalid parameters.

Source

pub const NOT_SUPPORTED: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

StartSelfUIAbility is not supported.

Available since API-level: 15

Source

pub const NO_SUCH_ABILITY: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

No such ability.

Available since API-level: 15

Source

pub const INCORRECT_ABILITY_TYPE: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

Incorrect ability type.

Available since API-level: 15

Source

pub const CROWDTEST_EXPIRED: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

The crowdtesting application expires.

Available since API-level: 15

Source

pub const WUKONG_MODE: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

The ability cannot be started in Wukong Mode.

Available since API-level: 15

Source

pub const CONTEXT_NOT_EXIST: AbilityRuntimeErrorCode

The context does not exist.

Source

pub const CONTROLLED: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

The app is controlled.

Available since API-level: 15

Source

pub const EDM_CONTROLLED: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

The app is controlled by EDM.

Available since API-level: 15

Source

pub const CROSS_APP: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

Cross-app start is not allowed.

Available since API-level: 15

Source

pub const INTERNAL: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

Internal error.

Available since API-level: 15

Source

pub const NOT_TOP_ABILITY: AbilityRuntimeErrorCode

Available on crate feature api-15 only.

Not top ability.

Available since API-level: 15

Source

pub const ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

Setting visibility is disabled.

Available since API-level: 17

Source

pub const MULTI_APP_NOT_SUPPORTED: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

App clone or multi-instance is not supported.

Available since API-level: 17

Source

pub const INVALID_APP_INSTANCE_KEY: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

The app instance key is invalid.

Available since API-level: 17

Source

pub const UPPER_LIMIT_REACHED: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

The number of app instances reaches the limit.

Available since API-level: 17

Source

pub const ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

The multi-instance is not supported.

Available since API-level: 17

Source

pub const APP_INSTANCE_KEY_NOT_SUPPORTED: AbilityRuntimeErrorCode

Available on crate feature api-17 only.

The APP_INSTANCE_KEY cannot be specified.

Available since API-level: 17

Source

pub const GET_APPLICATION_INFO_FAILED: AbilityRuntimeErrorCode

Available on crate feature api-21 only.

Failed to obtain the target application information.

Available since API-level: 21

Source

pub const START_TIMEOUT: AbilityRuntimeErrorCode

Available on crate feature api-21 only.

Start UIAbility timeout.

Available since API-level: 21

Source

pub const MAIN_THREAD_NOT_SUPPORTED: AbilityRuntimeErrorCode

Available on crate feature api-21 only.

The API does not support being called in the main thread.

Available since API-level: 21

Trait Implementations§

Source§

impl Clone for AbilityRuntimeErrorCode

Source§

fn clone(&self) -> AbilityRuntimeErrorCode

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for AbilityRuntimeErrorCode

Source§

impl Debug for AbilityRuntimeErrorCode

Source§

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

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

impl Eq for AbilityRuntimeErrorCode

Source§

impl Hash for AbilityRuntimeErrorCode

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AbilityRuntimeErrorCode

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for AbilityRuntimeErrorCode

Auto Trait Implementations§

§

impl Freeze for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl RefUnwindSafe for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl Send for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl Sync for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl Unpin for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl UnsafeUnpin for AbilityRuntimeErrorCode

Available on crate feature api-12 only.
§

impl UnwindSafe for AbilityRuntimeErrorCode

Available on crate feature api-12 only.

Blanket Implementations§

Source§

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

Available on crate feature api-12 only.
Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Available on crate feature api-12 only.
Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Available on crate feature api-12 only.
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,

Available on crate feature api-12 only.
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

Available on crate feature api-12 only.
Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Available on crate feature api-12 only.
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,

Available on crate feature api-12 only.
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>,

Available on crate feature api-12 only.
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>,

Available on crate feature api-12 only.
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.