#[non_exhaustive]
pub enum ErrorKind {
Show 26 variants RuntimeJoin(JoinError), ReadFileInput(ErrorPathBuf), ReadStdinInput(Error), Utf8(Utf8Error), NetworkRequest(Error), ReadResponseBody(Error), BuildRequestClient(Error), BuildGithubClient(Error), GithubRequest(Error), InvalidGithubUrl(String), ParseUrl(ParseErrorString), InvalidFilePath(Uri), InvalidUrlFromPath(PathBuf), UnreachableEmailAddress(UriString), InvalidHeader(InvalidHeaderValue), InvalidBase(StringString), InvalidUriRemap(String), FileNotFound(PathBuf), DirTraversal(Error), InvalidGlobPattern(PatternError), MissingGitHubToken, InsecureURL(Uri), Channel(SendError<InputContent>), InvalidUrlHost, InvalidURI(Uri), Regex(Error),
}
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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

RuntimeJoin(JoinError)

Error while executing a future on the Tokio runtime

ReadFileInput(ErrorPathBuf)

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

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

BuildGithubClient(Error)

The Github client required for making requests cannot be created

GithubRequest(Error)

Network error while using Github API

InvalidGithubUrl(String)

Invalid Github URL

ParseUrl(ParseErrorString)

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

InvalidUrlFromPath(PathBuf)

The given path cannot be converted to a URI

UnreachableEmailAddress(UriString)

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(StringString)

The given string can not be parsed into a valid base URL or base directory

InvalidUriRemap(String)

The given input can not be parsed into a valid URI remapping

FileNotFound(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

Regex(Error)

Regex error

Implementations

Return more details from the given ErrorKind

What additional information we can extract depends on the underlying request type. The output is purely meant for humans (e.g. for status messages) and future changes are expected.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

For maximum effectiveness, this needs to be called as a method to benefit from Rust’s automatic dereferencing of method receivers. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more