Enum shi::error::ShiError [−][src]
#[non_exhaustive]
pub enum ShiError {
ReadlineError(ReadlineError),
NoArgs,
ExtraArgs {
got: Vec<String>,
},
InvalidSubCommand {
got: String,
expected: Vec<String>,
},
UnrecognizedCommand {
got: String,
},
AlreadyRegistered {
cmd: String,
},
ParseError {
msg: String,
possibilities: Vec<String>,
cmd_path: Vec<String>,
remaining: Vec<String>,
},
General {
msg: String,
},
}
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.
ReadlineError(ReadlineError)
Tuple Fields of ReadlineError
Fields of UnrecognizedCommand
got: String
Fields of AlreadyRegistered
cmd: String
Fields of ParseError
Fields of General
msg: String
Implementations
Trait Implementations
Performs the conversion.