pub struct FlacDecoderInitError {
pub code: u32,
pub message: &'static str,
pub function: &'static str,
}
Fields§
§code: u32
- This code is actually
FlacDecoderInitErrorCode
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 FlacDecoderInitError
impl Clone for FlacDecoderInitError
Source§fn clone(&self) -> FlacDecoderInitError
fn clone(&self) -> FlacDecoderInitError
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 FlacDecoderInitError
impl Debug for FlacDecoderInitError
Source§impl Display for FlacDecoderInitError
impl Display for FlacDecoderInitError
Source§impl Error for FlacDecoderInitError
impl Error for FlacDecoderInitError
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 FlacDecoderInitError
impl FlacError for FlacDecoderInitError
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 FlacDecoderInitError
Auto Trait Implementations§
impl Freeze for FlacDecoderInitError
impl RefUnwindSafe for FlacDecoderInitError
impl Send for FlacDecoderInitError
impl Sync for FlacDecoderInitError
impl Unpin for FlacDecoderInitError
impl UnwindSafe for FlacDecoderInitError
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