pub struct FlacDecoderError {
pub code: u32,
pub message: &'static str,
pub function: &'static str,
}
Fields§
§code: u32
- This code is actually
FlacDecoderErrorCode
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 FlacDecoderError
impl Clone for FlacDecoderError
Source§fn clone(&self) -> FlacDecoderError
fn clone(&self) -> FlacDecoderError
Returns a copy 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 FlacDecoderError
impl Debug for FlacDecoderError
Source§impl Display for FlacDecoderError
impl Display for FlacDecoderError
Source§impl Error for FlacDecoderError
impl Error for FlacDecoderError
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 FlacDecoderError
impl FlacError for FlacDecoderError
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<FlacDecoderError> for FlacDecoderInitError
impl From<FlacDecoderError> for FlacDecoderInitError
Source§fn from(err: FlacDecoderError) -> Self
fn from(err: FlacDecoderError) -> Self
Converts to this type from the input type.
Source§impl From<FlacDecoderInitError> for FlacDecoderError
impl From<FlacDecoderInitError> for FlacDecoderError
Source§fn from(err: FlacDecoderInitError) -> Self
fn from(err: FlacDecoderInitError) -> Self
Converts to this type from the input type.
impl Copy for FlacDecoderError
Auto Trait Implementations§
impl Freeze for FlacDecoderError
impl RefUnwindSafe for FlacDecoderError
impl Send for FlacDecoderError
impl Sync for FlacDecoderError
impl Unpin for FlacDecoderError
impl UnwindSafe for FlacDecoderError
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