pub enum Error {
IoError(Error),
FeedError(Error),
UrlError(ParseError),
YtDlError(Error),
AllDownloadsEmptyError(Url),
ParentPathError(PathBuf),
FileStemError(PathBuf),
FileExtensionError(PathBuf),
}Expand description
Wrapper error types
Variantsยง
IoError(Error)
Error case where a std::io::Error was encountered while reading or writing to disk
FeedError(Error)
Error case where an rss::Error was encountered while parsing the RSS feed
UrlError(ParseError)
Error case where a url::ParseError was encountered
YtDlError(Error)
Error case where a youtube_dl::Error was encountered
AllDownloadsEmptyError(Url)
Error case where all target files were zero-duration after downloading
ParentPathError(PathBuf)
Error case the supplied feed_file path was invalid
FileStemError(PathBuf)
Error case the supplied feed_file path was invalid due to not having a name
FileExtensionError(PathBuf)
Error case the supplied feed_file path was invalid due to not having an extension
Trait Implementationsยง
Sourceยงimpl Error for Error
impl Error for Error
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<ParseError> for Error
impl From<ParseError> for Error
Sourceยงfn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more