pub struct FlacEncoderError {
pub code: u32,
pub message: &'static str,
pub function: &'static str,
}
Expand description
§Error info for the encoder, most of the encoder functions return this.
Fields§
§code: u32
- This code is actually
FlacEncoderErrorCode
message: &'static str
- The description of the status, as a constant string from
libflac-sys
function: &'static str
- Which function generates this error
Implementations§
Trait Implementations§
Source§impl Clone for FlacEncoderError
impl Clone for FlacEncoderError
Source§fn clone(&self) -> FlacEncoderError
fn clone(&self) -> FlacEncoderError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for FlacEncoderError
impl Debug for FlacEncoderError
Source§impl Display for FlacEncoderError
impl Display for FlacEncoderError
Source§impl Error for FlacEncoderError
impl Error for FlacEncoderError
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
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 FlacError for FlacEncoderError
impl FlacError for FlacEncoderError
Source§fn as_any(&self) -> &dyn Any
fn as_any(&self) -> &dyn Any
This method allows the trait to be able to downcast to a specific error struct. Read more
Source§fn get_code(&self) -> u32
fn get_code(&self) -> u32
Get the error or status code from the error struct. The code depends on which type of the error struct. Read more
Source§fn get_message(&self) -> &'static str
fn get_message(&self) -> &'static str
Get the message that describes the error code, mostly useful if you don’t know what exact the error type is. Read more
Source§fn get_function(&self) -> &'static str
fn get_function(&self) -> &'static str
On which function call to get the error. Also useful for addressing errors. Read more
Source§fn get_message_from_code(&self) -> &'static str
fn get_message_from_code(&self) -> &'static str
This function is implemented by the specific error struct, each struct has a different way to describe the code. Read more
Source§impl From<FlacEncoderError> for FlacEncoderInitError
impl From<FlacEncoderError> for FlacEncoderInitError
Source§fn from(err: FlacEncoderError) -> Self
fn from(err: FlacEncoderError) -> Self
Converts to this type from the input type.
Source§impl From<FlacEncoderInitError> for FlacEncoderError
impl From<FlacEncoderInitError> for FlacEncoderError
Source§fn from(err: FlacEncoderInitError) -> Self
fn from(err: FlacEncoderInitError) -> Self
Converts to this type from the input type.
impl Copy for FlacEncoderError
Auto Trait Implementations§
impl Freeze for FlacEncoderError
impl RefUnwindSafe for FlacEncoderError
impl Send for FlacEncoderError
impl Sync for FlacEncoderError
impl Unpin for FlacEncoderError
impl UnwindSafe for FlacEncoderError
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