pub enum SiteforgeError {
Show 20 variants
Io(Error),
Http(Error),
Url(ParseError),
Sqlite(Error),
Json(Error),
Yaml(Error),
Glob(Error),
Zip(ZipError),
MissingInput(&'static str),
InvalidArchiveId(String),
ArchiveNotFound(String),
RobotsDenied(String),
UnsupportedContent(String, String),
SizeLimitExceeded {
path: String,
size: u64,
limit: u64,
},
ConfigDirUnavailable,
ArchivePath(PathBuf),
OcrUnavailable(String),
Tui(String),
ArchiveInterrupted(String),
Message(String),
}Variants§
Io(Error)
Http(Error)
Url(ParseError)
Sqlite(Error)
Json(Error)
Yaml(Error)
Glob(Error)
Zip(ZipError)
MissingInput(&'static str)
InvalidArchiveId(String)
ArchiveNotFound(String)
RobotsDenied(String)
UnsupportedContent(String, String)
SizeLimitExceeded
ArchivePath(PathBuf)
Tui(String)
ArchiveInterrupted(String)
Message(String)
Implementations§
Trait Implementations§
Source§impl Debug for SiteforgeError
impl Debug for SiteforgeError
Source§impl Display for SiteforgeError
impl Display for SiteforgeError
Source§impl Error for SiteforgeError
impl Error for SiteforgeError
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<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<Error> for SiteforgeError
impl From<Error> for SiteforgeError
Source§impl From<ParseError> for SiteforgeError
impl From<ParseError> for SiteforgeError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SiteforgeError
impl !UnwindSafe for SiteforgeError
impl Freeze for SiteforgeError
impl Send for SiteforgeError
impl Sync for SiteforgeError
impl Unpin for SiteforgeError
impl UnsafeUnpin for SiteforgeError
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