#[repr(C)]pub enum BbxError {
Ok = 0,
NullPointer = 1,
InvalidParameter = 2,
InvalidBufferSize = 3,
GraphNotPrepared = 4,
AllocationFailed = 5,
}Expand description
Error codes for bbx_audio operations.
Uses #[repr(C)] for C-compatible memory layout, enabling FFI usage.
Variants§
Ok = 0
No error occurred.
NullPointer = 1
A null pointer was passed where a valid pointer was expected.
InvalidParameter = 2
An invalid parameter value was provided.
InvalidBufferSize = 3
An invalid buffer size was specified.
GraphNotPrepared = 4
The graph has not been prepared for playback.
AllocationFailed = 5
Memory allocation failed.
Trait Implementations§
Source§impl Error for BbxError
impl Error for BbxError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Copy for BbxError
impl Eq for BbxError
impl StructuralPartialEq for BbxError
Auto Trait Implementations§
impl Freeze for BbxError
impl RefUnwindSafe for BbxError
impl Send for BbxError
impl Sync for BbxError
impl Unpin for BbxError
impl UnwindSafe for BbxError
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