pub enum M3uError {
MissingHeader,
Parse {
line: usize,
message: String,
},
Io(Error),
}Expand description
Errors that can occur during M3U parsing or writing.
Variants§
MissingHeader
The input is not a valid M3U playlist (missing #EXTM3U header).
Parse
A parse error at a specific line.
Fields
Io(Error)
An I/O error (e.g. reading from a file).
Trait Implementations§
Source§impl Error for M3uError
impl Error for M3uError
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()
Auto Trait Implementations§
impl Freeze for M3uError
impl !RefUnwindSafe for M3uError
impl Send for M3uError
impl Sync for M3uError
impl Unpin for M3uError
impl UnsafeUnpin for M3uError
impl !UnwindSafe for M3uError
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