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