#[repr(i32)]pub enum ErrorCode {
BadArgument = -1,
BufferTooSmall = -2,
InternalError = -3,
InvalidPacket = -4,
Unimplemented = -5,
InvalidState = -6,
AllocFail = -7,
Unknown = 0,
}
Variants§
BadArgument = -1
BufferTooSmall = -2
InternalError = -3
InvalidPacket = -4
Unimplemented = -5
InvalidState = -6
AllocFail = -7
Unknown = 0
Occurs when Opus sends an error value that is not documented.
0
is unrelated to Opus and just a mere marker by this crate to
differentiate between Opus’ errors (all of them are negative).
Trait Implementations§
Source§impl Error for ErrorCode
impl Error for ErrorCode
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
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