pub enum LibraryError {
IoError(Error),
TomlDeserializationError(Error),
TomlSerializationError(Error),
UrlParseError(ParseError),
ChapterParseError(ChapterParseError),
BackendError(BackendError),
ImageError(ImageError),
Infallible(Infallible),
FsError(Error),
NoSuchNovel(Url),
ParseError(String),
NovelAlreadyPresent(Url),
}Expand description
Represents an error that can happen during Library operations
Variants§
IoError(Error)
Wraps a std::io::Error
TomlDeserializationError(Error)
Wraps a toml::de::Error
TomlSerializationError(Error)
Wraps a toml::ser::Error
UrlParseError(ParseError)
Wraps an url::ParseError
ChapterParseError(ChapterParseError)
Wraps a ChapterParseError
BackendError(BackendError)
Wraps a BackendError
ImageError(ImageError)
Wraps a ImageError
Infallible(Infallible)
Needed for accepting convert error with ?.
FsError(Error)
Wraps an error from fs_extra
NoSuchNovel(Url)
Returned when attempting to delete a fiction
ParseError(String)
A generic error encountered when parsing something
NovelAlreadyPresent(Url)
Returned when trying to add a novel that is already watched
Trait Implementations§
source§impl Debug for LibraryError
impl Debug for LibraryError
source§impl Display for LibraryError
impl Display for LibraryError
source§impl Error for LibraryError
impl Error for LibraryError
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<BackendError> for LibraryError
impl From<BackendError> for LibraryError
source§fn from(source: BackendError) -> Self
fn from(source: BackendError) -> Self
Converts to this type from the input type.
source§impl From<ChapterParseError> for LibraryError
impl From<ChapterParseError> for LibraryError
source§fn from(source: ChapterParseError) -> Self
fn from(source: ChapterParseError) -> Self
Converts to this type from the input type.
source§impl From<Error> for LibraryError
impl From<Error> for LibraryError
source§impl From<Error> for LibraryError
impl From<Error> for LibraryError
source§impl From<Error> for LibraryError
impl From<Error> for LibraryError
source§impl From<Error> for LibraryError
impl From<Error> for LibraryError
source§impl From<ImageError> for LibraryError
impl From<ImageError> for LibraryError
source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> Self
Converts to this type from the input type.
source§impl From<Infallible> for LibraryError
impl From<Infallible> for LibraryError
source§fn from(source: Infallible) -> Self
fn from(source: Infallible) -> Self
Converts to this type from the input type.
source§impl From<ParseError> for LibraryError
impl From<ParseError> for LibraryError
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 LibraryError
impl !RefUnwindSafe for LibraryError
impl Send for LibraryError
impl Sync for LibraryError
impl Unpin for LibraryError
impl !UnwindSafe for LibraryError
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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