pub enum ReadEntryExtError {
ExtInfNotFound(Entry),
BufRead(Error),
}
Expand description
Errors that may occur when attempting to read an EntryExt
from a read line str
.
Variants§
ExtInfNotFound(Entry)
Either the “#EXTINF:” tag was not found for the EntryExt
or the duration and name
following the tag were not correctly formatted.
Assuming that the tag was simply omitted, the line will instead be parsed as an Entry
.
BufRead(Error)
Errors produced by the BufRead::read_line
method.
Trait Implementations§
Source§impl Debug for ReadEntryExtError
impl Debug for ReadEntryExtError
Source§impl Display for ReadEntryExtError
impl Display for ReadEntryExtError
Source§impl Error for ReadEntryExtError
impl Error for ReadEntryExtError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§fn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Auto Trait Implementations§
impl Freeze for ReadEntryExtError
impl !RefUnwindSafe for ReadEntryExtError
impl Send for ReadEntryExtError
impl Sync for ReadEntryExtError
impl Unpin for ReadEntryExtError
impl !UnwindSafe for ReadEntryExtError
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