pub enum EncoderError {
Config(ConfigError),
InputData(InputDataError),
Encoding(EncodingError),
Memory,
InternalState(String),
}Expand description
Main error type for the MP3 encoder
Variants§
Config(ConfigError)
Configuration-related errors
InputData(InputDataError)
Input data validation errors
Encoding(EncodingError)
Encoding process errors
Memory
Memory allocation failures
InternalState(String)
Internal state consistency errors
Trait Implementations§
Source§impl Debug for EncoderError
impl Debug for EncoderError
Source§impl Display for EncoderError
impl Display for EncoderError
Source§impl Error for EncoderError
impl Error for EncoderError
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
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<ConfigError> for EncoderError
impl From<ConfigError> for EncoderError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<EncoderError> for EncodingError
Convert EncoderError to EncodingError for verification purposes
impl From<EncoderError> for EncodingError
Convert EncoderError to EncodingError for verification purposes
Source§fn from(err: EncoderError) -> Self
fn from(err: EncoderError) -> Self
Converts to this type from the input type.
Source§impl From<EncodingError> for EncoderError
impl From<EncodingError> for EncoderError
Source§fn from(source: EncodingError) -> Self
fn from(source: EncodingError) -> Self
Converts to this type from the input type.
Source§impl From<InputDataError> for EncoderError
impl From<InputDataError> for EncoderError
Source§fn from(source: InputDataError) -> Self
fn from(source: InputDataError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EncoderError
impl RefUnwindSafe for EncoderError
impl Send for EncoderError
impl Sync for EncoderError
impl Unpin for EncoderError
impl UnwindSafe for EncoderError
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