#[repr(transparent)]pub struct OH_AudioCommonErrorCode(pub NonZero<c_uint>);Available on crate feature
api-12 only.Expand description
Define the result of the function execution.
Available since API-level: 12
Tuple Fields§
§0: NonZero<c_uint>Implementations§
Source§impl OH_AudioCommonErrorCode
impl OH_AudioCommonErrorCode
Sourcepub const INVALID_PARAM: OH_AudioCommonErrorCode
pub const INVALID_PARAM: OH_AudioCommonErrorCode
This means that the input parameter is invalid.
Sourcepub const NO_MEMORY: OH_AudioCommonErrorCode
pub const NO_MEMORY: OH_AudioCommonErrorCode
This means there is no memory left.
Sourcepub const ILLEGAL_STATE: OH_AudioCommonErrorCode
pub const ILLEGAL_STATE: OH_AudioCommonErrorCode
Execution status exception.
Sourcepub const UNSUPPORTED: OH_AudioCommonErrorCode
pub const UNSUPPORTED: OH_AudioCommonErrorCode
This means the operation is unsupported.
Sourcepub const TIMEOUT: OH_AudioCommonErrorCode
pub const TIMEOUT: OH_AudioCommonErrorCode
This means the operation is timeout.
Sourcepub const STREAM_LIMIT: OH_AudioCommonErrorCode
pub const STREAM_LIMIT: OH_AudioCommonErrorCode
This means reached stream limit.
Sourcepub const SYSTEM: OH_AudioCommonErrorCode
pub const SYSTEM: OH_AudioCommonErrorCode
An system error has occurred.
Trait Implementations§
Source§impl Clone for OH_AudioCommonErrorCode
impl Clone for OH_AudioCommonErrorCode
Source§fn clone(&self) -> OH_AudioCommonErrorCode
fn clone(&self) -> OH_AudioCommonErrorCode
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 OH_AudioCommonErrorCode
impl Debug for OH_AudioCommonErrorCode
Source§impl Hash for OH_AudioCommonErrorCode
impl Hash for OH_AudioCommonErrorCode
Source§impl PartialEq for OH_AudioCommonErrorCode
impl PartialEq for OH_AudioCommonErrorCode
Source§fn eq(&self, other: &OH_AudioCommonErrorCode) -> bool
fn eq(&self, other: &OH_AudioCommonErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioCommonErrorCode
impl Eq for OH_AudioCommonErrorCode
impl StructuralPartialEq for OH_AudioCommonErrorCode
Auto Trait Implementations§
impl Freeze for OH_AudioCommonErrorCode
impl RefUnwindSafe for OH_AudioCommonErrorCode
impl Send for OH_AudioCommonErrorCode
impl Sync for OH_AudioCommonErrorCode
impl Unpin for OH_AudioCommonErrorCode
impl UnsafeUnpin for OH_AudioCommonErrorCode
impl UnwindSafe for OH_AudioCommonErrorCode
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