Enum perseus_cli::errors::ErrorKind[][src]

pub enum ErrorKind {
Show 14 variants Msg(String), PrereqFailed(StringStringString), CurrentDirUnavailable(String), ExtractionFailed(Option<String>, String), GitignoreUpdateFailed(String), ManifestUpdateFailed(Option<String>, String), GetUserManifestFailed(String), RemoveBadDirFailed(Option<String>, String), CmdExecFailed(StringString), WatcherFailed(StringString), NextStdoutLineNone, GetServerExecutableFailed(String), PortNotNumber(String), MovePkgDirFailed(String), // some variants omitted
}
Expand description

The kind of an error.

Variants

Msg(String)

A convenient variant for String.

Tuple Fields of Msg

0: String
PrereqFailed(StringStringString)

For when executing a prerequisite command fails.

Tuple Fields of PrereqFailed

0: String1: String2: String
CurrentDirUnavailable(String)

For when the user’s curreent directory couldn’t be found.

Tuple Fields of CurrentDirUnavailable

0: String
ExtractionFailed(Option<String>, String)

For when extracting the subcrates failed.

Tuple Fields of ExtractionFailed

0: Option<String>1: String
GitignoreUpdateFailed(String)

For when updating the user’s .gitignore fails

Tuple Fields of GitignoreUpdateFailed

0: String
ManifestUpdateFailed(Option<String>, String)

For when updating relative paths and package names in the manifest failed.

Tuple Fields of ManifestUpdateFailed

0: Option<String>1: String
GetUserManifestFailed(String)

For when we can’t get the user’s Cargo.toml file.

Tuple Fields of GetUserManifestFailed

0: String
RemoveBadDirFailed(Option<String>, String)

For when a partially-formed ‘.perseus/’ directory couldn’t be removed, but did exist.

Tuple Fields of RemoveBadDirFailed

0: Option<String>1: String
CmdExecFailed(StringString)

For when executing a system command after preparation failed. This shouldn’t cause a directory deletion.

Tuple Fields of CmdExecFailed

0: String1: String
WatcherFailed(StringString)

For when watching failes for changes failed.

Tuple Fields of WatcherFailed

0: String1: String
NextStdoutLineNone

For when the next line of the stdout of a command is None when it shouldn’t have been.

GetServerExecutableFailed(String)

For when getting the path to the built executable for the server from the JSON build output failed.

Tuple Fields of GetServerExecutableFailed

0: String
PortNotNumber(String)

For when getting the path to the built executable for the server from the JSON build output failed.

Tuple Fields of PortNotNumber

0: String
MovePkgDirFailed(String)

For when moving the pkg/ directory to dist/pkg/ fails.

Tuple Fields of MovePkgDirFailed

0: String

Implementations

A string describing the error kind.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.