#[repr(i32)]pub enum ErrorCode {
Ok = 0,
BadArg = -1,
AllocFail = -7,
InvalidState = -6,
InvalidPacket = -4,
BufferTooSmall = -2,
Internal = -3,
Unimplemented = -5,
Unknown = -200,
}
Expand description
Underlying libopus error codes
Variants§
Ok = 0
No error
BadArg = -1
One or more invalid/out of range arguments
AllocFail = -7
Memory allocation has failed
InvalidState = -6
An encoder or decoder structure is invalid or already freed
InvalidPacket = -4
The compressed data passed is corrupted
BufferTooSmall = -2
Not enough bytes allocated in the buffer
Internal = -3
An internal error was detected
Unimplemented = -5
Invalid/unsupported request number
Unknown = -200
Unknown error variant. Should not be possible
Implementations§
Trait Implementations§
impl Copy for ErrorCode
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnwindSafe for ErrorCode
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