pub enum SampleFormatError {
InvalidFormat(String),
InvalidNumber(ParseIntError),
}Expand description
Errors when parsing a SampleFormat from a string.
Variants§
InvalidFormat(String)
The string does not have the expected rate:bits:channels format.
InvalidNumber(ParseIntError)
A numeric field could not be parsed.
Trait Implementations§
Source§impl Debug for SampleFormatError
impl Debug for SampleFormatError
Source§impl Display for SampleFormatError
impl Display for SampleFormatError
Source§impl Error for SampleFormatError
impl Error for SampleFormatError
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<ParseIntError> for SampleFormatError
impl From<ParseIntError> for SampleFormatError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SampleFormatError
impl RefUnwindSafe for SampleFormatError
impl Send for SampleFormatError
impl Sync for SampleFormatError
impl Unpin for SampleFormatError
impl UnsafeUnpin for SampleFormatError
impl UnwindSafe for SampleFormatError
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