Enum opus::ErrorCode
[−]
[src]
pub enum ErrorCode { BadArg, BufferTooSmall, InternalError, InvalidPacket, Unimplemented, InvalidState, AllocFail, Unknown, }
Possible error codes.
Variants
BadArg
One or more invalid/out of range arguments.
BufferTooSmall
Not enough bytes allocated in the buffer.
InternalError
An internal error was detected.
InvalidPacket
The compressed data passed is corrupted.
Unimplemented
Invalid/unsupported request number.
InvalidState
An encoder or decoder structure is invalid or already freed.
AllocFail
Memory allocation has failed.
Unknown
An unknown failure.
Trait Implementations
impl Debug for ErrorCode
[src]
impl Copy for ErrorCode
[src]
impl Clone for ErrorCode
[src]
fn clone(&self) -> ErrorCode
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Eq for ErrorCode
[src]
impl PartialEq for ErrorCode
[src]
fn eq(&self, __arg_0: &ErrorCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Hash for ErrorCode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.