#[repr(transparent)]pub struct OH_AudioStreamErrorCode(pub NonZero<c_uint>);Expand description
Define the result of the function execution.
Available since API-level: 10
Tuple Fields§
§0: NonZero<c_uint>Implementations§
Source§impl OH_AudioStreamErrorCode
impl OH_AudioStreamErrorCode
Sourcepub const INVALID_PARAM: OH_AudioStreamErrorCode
pub const INVALID_PARAM: OH_AudioStreamErrorCode
This means that the function was executed with an invalid input parameter.
Available since API-level: 10
Sourcepub const ILLEGAL_STATE: OH_AudioStreamErrorCode
pub const ILLEGAL_STATE: OH_AudioStreamErrorCode
Execution status exception.
Available since API-level: 10
Sourcepub const SYSTEM: OH_AudioStreamErrorCode
pub const SYSTEM: OH_AudioStreamErrorCode
An system error has occurred.
Available since API-level: 10
Sourcepub const UNSUPPORTED_FORMAT: OH_AudioStreamErrorCode
Available on crate feature api-19 only.
pub const UNSUPPORTED_FORMAT: OH_AudioStreamErrorCode
api-19 only.Unsupported audio format, such as unsupported encoding type, sample format etc.
Available since API-level: 19
Trait Implementations§
Source§impl Clone for OH_AudioStreamErrorCode
impl Clone for OH_AudioStreamErrorCode
Source§fn clone(&self) -> OH_AudioStreamErrorCode
fn clone(&self) -> OH_AudioStreamErrorCode
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_AudioStreamErrorCode
impl Debug for OH_AudioStreamErrorCode
Source§impl Hash for OH_AudioStreamErrorCode
impl Hash for OH_AudioStreamErrorCode
Source§impl PartialEq for OH_AudioStreamErrorCode
impl PartialEq for OH_AudioStreamErrorCode
Source§fn eq(&self, other: &OH_AudioStreamErrorCode) -> bool
fn eq(&self, other: &OH_AudioStreamErrorCode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for OH_AudioStreamErrorCode
impl Eq for OH_AudioStreamErrorCode
impl StructuralPartialEq for OH_AudioStreamErrorCode
Auto Trait Implementations§
impl Freeze for OH_AudioStreamErrorCode
impl RefUnwindSafe for OH_AudioStreamErrorCode
impl Send for OH_AudioStreamErrorCode
impl Sync for OH_AudioStreamErrorCode
impl Unpin for OH_AudioStreamErrorCode
impl UnsafeUnpin for OH_AudioStreamErrorCode
impl UnwindSafe for OH_AudioStreamErrorCode
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