#[repr(transparent)]pub struct CommonEvent_ErrCode(pub c_uint);Available on crate features
commonevent and api-12 only.Expand description
Defines error codes.
Available since API-level: 12
Version: 1.0
Tuple Fields§
§0: c_uintImplementations§
Source§impl CommonEvent_ErrCode
impl CommonEvent_ErrCode
Sourcepub const COMMONEVENT_ERR_OK: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_OK: CommonEvent_ErrCode
Execution successful.
Sourcepub const COMMONEVENT_ERR_PERMISSION_ERROR: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_PERMISSION_ERROR: CommonEvent_ErrCode
permission verification failed.
Sourcepub const COMMONEVENT_ERR_INVALID_PARAMETER: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_INVALID_PARAMETER: CommonEvent_ErrCode
invalid input parameter.
Sourcepub const COMMONEVENT_ERR_SENDING_LIMIT_EXCEEDED: CommonEvent_ErrCode
Available on crate feature api-20 only.
pub const COMMONEVENT_ERR_SENDING_LIMIT_EXCEEDED: CommonEvent_ErrCode
api-20 only.The common event send frequency too high.
Available since API-level: 20
Sourcepub const COMMONEVENT_ERR_NOT_SYSTEM_SERVICE: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_NOT_SYSTEM_SERVICE: CommonEvent_ErrCode
the application cannot send system common events.
Sourcepub const COMMONEVENT_ERR_SENDING_REQUEST_FAILED: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_SENDING_REQUEST_FAILED: CommonEvent_ErrCode
IPC request failed to send.
Sourcepub const COMMONEVENT_ERR_INIT_UNDONE: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_INIT_UNDONE: CommonEvent_ErrCode
Common event service not init.
Sourcepub const COMMONEVENT_ERR_OBTAIN_SYSTEM_PARAMS: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_OBTAIN_SYSTEM_PARAMS: CommonEvent_ErrCode
Failed to obtain system parameters.
Sourcepub const COMMONEVENT_ERR_SUBSCRIBER_NUM_EXCEEDED: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_SUBSCRIBER_NUM_EXCEEDED: CommonEvent_ErrCode
The subscriber number exceed system specification
Sourcepub const COMMONEVENT_ERR_ALLOC_MEMORY_FAILED: CommonEvent_ErrCode
pub const COMMONEVENT_ERR_ALLOC_MEMORY_FAILED: CommonEvent_ErrCode
A memory allocation error occurs.
Trait Implementations§
Source§impl Clone for CommonEvent_ErrCode
impl Clone for CommonEvent_ErrCode
Source§fn clone(&self) -> CommonEvent_ErrCode
fn clone(&self) -> CommonEvent_ErrCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommonEvent_ErrCode
impl Debug for CommonEvent_ErrCode
Source§impl Hash for CommonEvent_ErrCode
impl Hash for CommonEvent_ErrCode
Source§impl PartialEq for CommonEvent_ErrCode
impl PartialEq for CommonEvent_ErrCode
Source§fn eq(&self, other: &CommonEvent_ErrCode) -> bool
fn eq(&self, other: &CommonEvent_ErrCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CommonEvent_ErrCode
impl Eq for CommonEvent_ErrCode
impl StructuralPartialEq for CommonEvent_ErrCode
Auto Trait Implementations§
impl Freeze for CommonEvent_ErrCode
impl RefUnwindSafe for CommonEvent_ErrCode
impl Send for CommonEvent_ErrCode
impl Sync for CommonEvent_ErrCode
impl Unpin for CommonEvent_ErrCode
impl UnsafeUnpin for CommonEvent_ErrCode
impl UnwindSafe for CommonEvent_ErrCode
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