Enum opus::ErrorCode
[−]
[src]
pub enum ErrorCode {
BadArg,
BufferTooSmall,
InternalError,
InvalidPacket,
Unimplemented,
InvalidState,
AllocFail,
Unknown,
}Possible error codes.
Variants
BadArgOne or more invalid/out of range arguments.
BufferTooSmallNot enough bytes allocated in the buffer.
InternalErrorAn internal error was detected.
InvalidPacketThe compressed data passed is corrupted.
UnimplementedInvalid/unsupported request number.
InvalidStateAn encoder or decoder structure is invalid or already freed.
AllocFailMemory allocation has failed.
UnknownAn 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) -> bool1.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: Hasher1.3.0
Feeds a slice of this type into the state provided.