#[non_exhaustive]pub enum ErrorKind {
Show 37 variants
NetworkRequest(Error),
ReadResponseBody(Error),
BuildRequestClient(Error),
GithubRequest(Box<Error>),
RuntimeJoin(JoinError),
ReadFileInput(Error, PathBuf),
ReadStdinInput(Error),
Utf8(Utf8Error),
BuildGithubClient(Box<Error>),
InvalidGithubUrl(String),
EmptyUrl,
ParseUrl(ParseError, String),
InvalidFilePath(Uri),
InvalidFragment(Uri),
InvalidUrlFromPath(PathBuf),
UnreachableEmailAddress(Uri, String),
InvalidHeader(InvalidHeaderValue),
InvalidBase(String, String),
InvalidBaseJoin(String),
InvalidPathToUri(String),
RootDirMustBeAbsolute(PathBuf),
UnsupportedUriType(String),
InvalidUrlRemap(String),
InvalidFile(PathBuf),
DirTraversal(Error),
InvalidGlobPattern(PatternError),
MissingGitHubToken,
InsecureURL(Uri),
Channel(SendError<InputContent>),
InvalidUrlHost,
InvalidURI(Uri),
InvalidStatusCode(u16),
Regex(Error),
TooManyRedirects(Error),
BasicAuthExtractorError(BasicAuthExtractorError),
Cookies(String),
StatusCodeSelectorError(StatusCodeSelectorError),
}
Expand description
Kinds of status errors Note: The error messages can change over time, so don’t match on the output
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
NetworkRequest(Error)
Network error while handling request
ReadResponseBody(Error)
Cannot read the body of the received response
BuildRequestClient(Error)
The network client required for making requests cannot be created
GithubRequest(Box<Error>)
Network error while using GitHub API
RuntimeJoin(JoinError)
Error while executing a future on the Tokio runtime
ReadFileInput(Error, PathBuf)
Error while converting a file to an input
ReadStdinInput(Error)
Error while reading stdin as input
Utf8(Utf8Error)
Errors which can occur when attempting to interpret a sequence of u8 as a string
BuildGithubClient(Box<Error>)
The GitHub client required for making requests cannot be created
InvalidGithubUrl(String)
Invalid GitHub URL
EmptyUrl
The input is empty and not accepted as a valid URL
ParseUrl(ParseError, String)
The given string can not be parsed into a valid URL, e-mail address, or file path
InvalidFilePath(Uri)
The given URI cannot be converted to a file path
InvalidFragment(Uri)
The given URI cannot be converted to a file path
InvalidUrlFromPath(PathBuf)
The given path cannot be converted to a URI
UnreachableEmailAddress(Uri, String)
The given mail address is unreachable
InvalidHeader(InvalidHeaderValue)
The given header could not be parsed.
A possible error when converting a HeaderValue
from a string or byte
slice.
InvalidBase(String, String)
The given string can not be parsed into a valid base URL or base directory
InvalidBaseJoin(String)
Cannot join the given text with the base URL
InvalidPathToUri(String)
Cannot convert the given path to a URI
RootDirMustBeAbsolute(PathBuf)
Root dir must be an absolute path
UnsupportedUriType(String)
The given URI type is not supported
InvalidUrlRemap(String)
The given input can not be parsed into a valid URI remapping
InvalidFile(PathBuf)
The given path does not resolve to a valid file
DirTraversal(Error)
Error while traversing an input directory
InvalidGlobPattern(PatternError)
The given glob pattern is not valid
MissingGitHubToken
The GitHub API could not be called because of a missing GitHub token.
InsecureURL(Uri)
Used an insecure URI where a secure variant was reachable
Channel(SendError<InputContent>)
Error while sending/receiving messages from MPSC channel
InvalidUrlHost
An URL with an invalid host was found
InvalidURI(Uri)
Cannot parse the given URI
InvalidStatusCode(u16)
The given status code is invalid (not in the range 100-1000)
Regex(Error)
Regex error
TooManyRedirects(Error)
Too many redirects (HTTP 3xx) were encountered (configurable)
BasicAuthExtractorError(BasicAuthExtractorError)
Basic auth extractor error
Cookies(String)
Cannot load cookies
StatusCodeSelectorError(StatusCodeSelectorError)
Status code selector parse error
Implementations§
Trait Implementations§
Source§impl Error for ErrorKind
impl Error for ErrorKind
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Infallible> for ErrorKind
impl From<Infallible> for ErrorKind
Source§fn from(_: Infallible) -> Self
fn from(_: Infallible) -> Self
Source§impl From<InvalidHeaderValue> for ErrorKind
impl From<InvalidHeaderValue> for ErrorKind
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Source§impl From<PatternError> for ErrorKind
impl From<PatternError> for ErrorKind
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Source§impl From<SendError<InputContent>> for ErrorKind
impl From<SendError<InputContent>> for ErrorKind
Source§fn from(source: SendError<InputContent>) -> Self
fn from(source: SendError<InputContent>) -> Self
impl Eq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations§
Source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
Source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.