pub enum EncodeError {
BufferTooSmall,
NoMem,
InvalidState,
PsychoAcoustic,
Other(c_int),
}Expand description
Encoder errors
Variants§
BufferTooSmall
Indicates output buffer is insufficient.
Consider using max_required_buffer_size to determine required space to alloc.
NoMem
Failed to allocate memory
InvalidState
Invalid encoder state
Should not happen if encoder created through builder
PsychoAcoustic
Psycho acoustic problems, whatever it means.
Other(c_int)
Other errors, most likely unexpected.
Trait Implementations§
Source§impl Clone for EncodeError
impl Clone for EncodeError
Source§fn clone(&self) -> EncodeError
fn clone(&self) -> EncodeError
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EncodeError
impl Debug for EncodeError
Source§impl Display for EncodeError
impl Display for EncodeError
Source§impl PartialEq for EncodeError
impl PartialEq for EncodeError
impl Copy for EncodeError
impl Eq for EncodeError
impl StructuralPartialEq for EncodeError
Auto Trait Implementations§
impl Freeze for EncodeError
impl RefUnwindSafe for EncodeError
impl Send for EncodeError
impl Sync for EncodeError
impl Unpin for EncodeError
impl UnwindSafe for EncodeError
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)