#[repr(transparent)]pub struct OHNativeErrorCode(pub c_uint);Available on crate feature
api-12 only.Expand description
interface error code.
Available since API-level: 12
Tuple Fields§
§0: c_uintImplementations§
Source§impl OHNativeErrorCode
impl OHNativeErrorCode
Sourcepub const NATIVE_ERROR_OK: OHNativeErrorCode
pub const NATIVE_ERROR_OK: OHNativeErrorCode
succeed
Sourcepub const NATIVE_ERROR_MEM_OPERATION_ERROR: OHNativeErrorCode
Available on crate feature api-15 only.
pub const NATIVE_ERROR_MEM_OPERATION_ERROR: OHNativeErrorCode
api-15 only.memory operation error
Available since API-level: 15
Sourcepub const NATIVE_ERROR_INVALID_ARGUMENTS: OHNativeErrorCode
pub const NATIVE_ERROR_INVALID_ARGUMENTS: OHNativeErrorCode
input invalid parameter
Sourcepub const NATIVE_ERROR_NO_PERMISSION: OHNativeErrorCode
pub const NATIVE_ERROR_NO_PERMISSION: OHNativeErrorCode
unauthorized operation
Sourcepub const NATIVE_ERROR_NO_BUFFER: OHNativeErrorCode
pub const NATIVE_ERROR_NO_BUFFER: OHNativeErrorCode
no idle buffer is available
Sourcepub const NATIVE_ERROR_NO_CONSUMER: OHNativeErrorCode
pub const NATIVE_ERROR_NO_CONSUMER: OHNativeErrorCode
the consumer side doesn’t exist
Sourcepub const NATIVE_ERROR_NOT_INIT: OHNativeErrorCode
pub const NATIVE_ERROR_NOT_INIT: OHNativeErrorCode
uninitialized
Sourcepub const NATIVE_ERROR_CONSUMER_CONNECTED: OHNativeErrorCode
pub const NATIVE_ERROR_CONSUMER_CONNECTED: OHNativeErrorCode
the consumer is connected
Sourcepub const NATIVE_ERROR_BUFFER_STATE_INVALID: OHNativeErrorCode
pub const NATIVE_ERROR_BUFFER_STATE_INVALID: OHNativeErrorCode
the buffer status did not meet expectations
Sourcepub const NATIVE_ERROR_BUFFER_IN_CACHE: OHNativeErrorCode
pub const NATIVE_ERROR_BUFFER_IN_CACHE: OHNativeErrorCode
buffer is already in the cache queue
Sourcepub const NATIVE_ERROR_BUFFER_QUEUE_FULL: OHNativeErrorCode
pub const NATIVE_ERROR_BUFFER_QUEUE_FULL: OHNativeErrorCode
the buffer queue is full
Sourcepub const NATIVE_ERROR_BUFFER_NOT_IN_CACHE: OHNativeErrorCode
pub const NATIVE_ERROR_BUFFER_NOT_IN_CACHE: OHNativeErrorCode
buffer is not in the cache queue
Sourcepub const NATIVE_ERROR_CONSUMER_DISCONNECTED: OHNativeErrorCode
pub const NATIVE_ERROR_CONSUMER_DISCONNECTED: OHNativeErrorCode
the consumer is disconnected
Sourcepub const NATIVE_ERROR_CONSUMER_NO_LISTENER_REGISTERED: OHNativeErrorCode
pub const NATIVE_ERROR_CONSUMER_NO_LISTENER_REGISTERED: OHNativeErrorCode
the consumer not register listener
Sourcepub const NATIVE_ERROR_UNSUPPORTED: OHNativeErrorCode
pub const NATIVE_ERROR_UNSUPPORTED: OHNativeErrorCode
the current device or platform does not support it
Sourcepub const NATIVE_ERROR_UNKNOWN: OHNativeErrorCode
pub const NATIVE_ERROR_UNKNOWN: OHNativeErrorCode
unknown error, please check log
Sourcepub const NATIVE_ERROR_HDI_ERROR: OHNativeErrorCode
pub const NATIVE_ERROR_HDI_ERROR: OHNativeErrorCode
hdi interface error
Sourcepub const NATIVE_ERROR_BINDER_ERROR: OHNativeErrorCode
pub const NATIVE_ERROR_BINDER_ERROR: OHNativeErrorCode
ipc send failed
Sourcepub const NATIVE_ERROR_EGL_STATE_UNKNOWN: OHNativeErrorCode
pub const NATIVE_ERROR_EGL_STATE_UNKNOWN: OHNativeErrorCode
the egl environment is abnormal
Sourcepub const NATIVE_ERROR_EGL_API_FAILED: OHNativeErrorCode
pub const NATIVE_ERROR_EGL_API_FAILED: OHNativeErrorCode
egl interface invocation failed
Trait Implementations§
Source§impl Clone for OHNativeErrorCode
impl Clone for OHNativeErrorCode
Source§fn clone(&self) -> OHNativeErrorCode
fn clone(&self) -> OHNativeErrorCode
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OHNativeErrorCode
impl Debug for OHNativeErrorCode
Source§impl Hash for OHNativeErrorCode
impl Hash for OHNativeErrorCode
Source§impl PartialEq for OHNativeErrorCode
impl PartialEq for OHNativeErrorCode
impl Copy for OHNativeErrorCode
impl Eq for OHNativeErrorCode
impl StructuralPartialEq for OHNativeErrorCode
Auto Trait Implementations§
impl Freeze for OHNativeErrorCode
impl RefUnwindSafe for OHNativeErrorCode
impl Send for OHNativeErrorCode
impl Sync for OHNativeErrorCode
impl Unpin for OHNativeErrorCode
impl UnwindSafe for OHNativeErrorCode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)