#![allow(non_upper_case_globals)]
#![allow(non_camel_case_types)]
#![allow(non_snake_case)]
pub type AbilityRuntimeResult = Result<(), AbilityRuntimeErrorCode>;
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
impl AbilityRuntimeErrorCode {
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const PERMISSION_DENIED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(201).unwrap() });
pub const PARAM_INVALID: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(401).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const NOT_SUPPORTED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(801).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const NO_SUCH_ABILITY: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000001).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const INCORRECT_ABILITY_TYPE: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000002).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const CROWDTEST_EXPIRED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000008).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const WUKONG_MODE: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000009).unwrap() });
pub const CONTEXT_NOT_EXIST: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000011).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const CONTROLLED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000012).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const EDM_CONTROLLED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000013).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const CROSS_APP: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000018).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const INTERNAL: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000050).unwrap() });
#[cfg(feature = "api-15")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-15")))]
pub const NOT_TOP_ABILITY: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000053).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000067).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const MULTI_APP_NOT_SUPPORTED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000072).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const INVALID_APP_INSTANCE_KEY: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000076).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const UPPER_LIMIT_REACHED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000077).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000078).unwrap() });
#[cfg(feature = "api-17")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-17")))]
pub const APP_INSTANCE_KEY_NOT_SUPPORTED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000079).unwrap() });
#[cfg(feature = "api-21")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-21")))]
pub const GET_APPLICATION_INFO_FAILED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000081).unwrap() });
#[cfg(feature = "api-21")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-21")))]
pub const START_TIMEOUT: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000133).unwrap() });
#[cfg(feature = "api-21")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-21")))]
pub const MAIN_THREAD_NOT_SUPPORTED: AbilityRuntimeErrorCode =
AbilityRuntimeErrorCode(const { core::num::NonZero::new(16000134).unwrap() });
}
#[repr(transparent)]
#[cfg(feature = "api-13")]
#[cfg_attr(docsrs, doc(cfg(feature = "api-13")))]
#[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
pub struct AbilityRuntimeErrorCode(pub core::num::NonZero<::core::ffi::c_uint>);