ArkUiErrorCode

Struct ArkUiErrorCode 

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

Define error code enumeration values.

Available since API-level: 12

Tuple Fields§

§0: NonZero<c_uint>

Implementations§

Source§

impl ArkUiErrorCode

Source

pub const PARAM_INVALID: ArkUiErrorCode

Parameter error.

Source

pub const CAPI_INIT_ERROR: ArkUiErrorCode

Available on crate feature api-18 only.

CAPI init error.

Available since API-level: 18

Source

pub const INTERNAL_ERROR: ArkUiErrorCode

Available on crate feature api-15 only.

Internal error occurs, such as failure occurs because of the internal environment error, or operation failed because of the internal execution failed.

Available since API-level: 15

Source

pub const XCOMPONENT_STATE_INVALID: ArkUiErrorCode

Available on crate feature api-19 only.

The XComponent is in invalid state.

Available since API-level: 19

Source

pub const ATTRIBUTE_OR_EVENT_NOT_SUPPORTED: ArkUiErrorCode

The component does not support specific properties or events.

Source

pub const ARKTS_NODE_NOT_SUPPORTED: ArkUiErrorCode

The corresponding operation does not support nodes created by ArkTS.

Source

pub const ADAPTER_NOT_BOUND: ArkUiErrorCode

The lazy loading adapter is not bound to the component.

Source

pub const ADAPTER_EXIST: ArkUiErrorCode

The adapter already exists.

Source

pub const CHILD_NODE_EXIST: ArkUiErrorCode

The corresponding node already has a child node and cannot add an adapter.

Source

pub const NODE_EVENT_PARAM_INDEX_OUT_OF_RANGE: ArkUiErrorCode

The parameter length in the parameter event exceeds the limit.

Source

pub const NODE_EVENT_PARAM_INVALID: ArkUiErrorCode

The data does not exist in the component event.

Source

pub const NODE_EVENT_NO_RETURN: ArkUiErrorCode

The component event does not support return values.

Source

pub const NODE_UNSUPPORTED_EVENT_TYPE: ArkUiErrorCode

Available on crate feature api-21 only.

The event type is not supported by the node.

Available since API-level: 21

Source

pub const NODE_INDEX_INVALID: ArkUiErrorCode

The index value is invalid.

Source

pub const GET_INFO_FAILED: ArkUiErrorCode

Failed to query route navigation information.

Source

pub const BUFFER_SIZE_ERROR: ArkUiErrorCode

The buffer size is not large enough.

Source

pub const NODE_NOT_ON_MAIN_TREE: ArkUiErrorCode

Available on crate feature api-15 only.

The node is not on main tree.

Available since API-level: 15

Source

pub const FORCE_DARK_CONFIG_INVALID: ArkUiErrorCode

Available on crate feature api-20 only.

Force dark config is invalid.

Available since API-level: 20

Source

pub const NOT_CUSTOM_NODE: ArkUiErrorCode

Available on crate feature api-20 only.

The node type is not custom node.

Available since API-level: 20

Source

pub const CHILD_EXISTED: ArkUiErrorCode

Available on crate feature api-20 only.

Node already has children.

Available since API-level: 20

Source

pub const RENDER_PARENT_EXISTED: ArkUiErrorCode

Available on crate feature api-20 only.

RenderNode parent is existed.

Available since API-level: 20

Source

pub const RENDER_CHILD_NOT_EXIST: ArkUiErrorCode

Available on crate feature api-20 only.

RenderNode child is not exist.

Available since API-level: 20

Source

pub const PARAM_OUT_OF_RANGE: ArkUiErrorCode

Available on crate feature api-20 only.

Param is out of range.

Available since API-level: 20

Source

pub const FOCUS_NON_FOCUSABLE: ArkUiErrorCode

Available on crate feature api-15 only.

The node requesting focus is not focusable.

Available since API-level: 15

Source

pub const FOCUS_NON_FOCUSABLE_ANCESTOR: ArkUiErrorCode

Available on crate feature api-15 only.

The node requesting focus has unfocusable ancestor.

Available since API-level: 15

Source

pub const FOCUS_NON_EXISTENT: ArkUiErrorCode

Available on crate feature api-15 only.

The node requesting focus does not exists.

Available since API-level: 15

Source

pub const COMPONENT_SNAPSHOT_TIMEOUT: ArkUiErrorCode

Available on crate feature api-15 only.

The snapshot taking is timeout.

Available since API-level: 15

Source

pub const NON_SCROLLABLE_CONTAINER: ArkUiErrorCode

The component is not a scroll container.

Source

pub const BUFFER_SIZE_NOT_ENOUGH: ArkUiErrorCode

The buffer is not large enough.

Source

pub const NOT_CLONED_POINTER_EVENT: ArkUiErrorCode

Available on crate feature api-15 only.

The event is not a clone event.

Available since API-level: 15

Source

pub const POST_CLONED_COMPONENT_STATUS_ABNORMAL: ArkUiErrorCode

Available on crate feature api-15 only.

The component status is abnormal.

Available since API-level: 15

Source

pub const POST_CLONED_NO_COMPONENT_HIT_TO_RESPOND_TO_THE_EVENT: ArkUiErrorCode

Available on crate feature api-15 only.

No component hit to respond to the event.

Available since API-level: 15

Source

pub const ARKUI_ERROR_INPUT_EVENT_TYPE_NOT_SUPPORTED: ArkUiErrorCode

Available on crate feature api-20 only.

Input event type not supported.

Available since API-level: 20

Source

pub const INVALID_STYLED_STRING: ArkUiErrorCode

Available on crate feature api-14 only.

invalid styled string.

Available since API-level: 14

Source

pub const RECOGNIZER_TYPE_NOT_SUPPORTED: ArkUiErrorCode

Available on crate feature api-18 only.

The gesture recognizer type is not supported.

Available since API-level: 18

Source

pub const UI_CONTEXT_INVALID: ArkUiErrorCode

Available on crate feature api-18 only.

The uiContext is invalid.

Available since API-level: 18

Source

pub const CALLBACK_INVALID: ArkUiErrorCode

Available on crate feature api-18 only.

The callback function is invalid.

Available since API-level: 18

Source

pub const DRAG_DROP_OPERATION_NOT_ALLOWED: ArkUiErrorCode

Available on crate feature api-19 only.

operation is not allowed for current drag drop pharse.

Available since API-level: 19

Source

pub const PARAM_ERROR: ArkUiErrorCode

Available on crate feature api-21 only.

Parameter error.

Available since API-level: 21

Trait Implementations§

Source§

impl Clone for ArkUiErrorCode

Source§

fn clone(&self) -> ArkUiErrorCode

Returns a duplicate of the value. Read more
1.0.0§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for ArkUiErrorCode

Source§

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

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

impl Hash for ArkUiErrorCode

Source§

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

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

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 ArkUiErrorCode

Source§

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

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

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

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

impl Copy for ArkUiErrorCode

Source§

impl Eq for ArkUiErrorCode

Source§

impl StructuralPartialEq for ArkUiErrorCode

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

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
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

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

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

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

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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.
§

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

Performs the conversion.