pub enum LibraryError {
IoError(Error),
TomlDeserializationError(Error),
TomlSerializationError(Error),
UrlParseError(ParseError),
ChapterParseError(ChapterParseError),
BackendError(BackendError),
Infallible(Infallible),
NoSuchNovel(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)
Represents a Backend Error
Infallible(Infallible)
Needed for accepting convert error with ?.
NoSuchNovel(Url)
Returned when attempting to delete a fiction
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<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