pub enum Error<'src> {
Show 53 variants
AmbiguousModuleFile {
module: Name<'src>,
found: Vec<PathBuf>,
},
ArgumentCountMismatch {
recipe: &'src str,
parameters: Vec<Parameter<'src>>,
found: usize,
min: usize,
max: usize,
},
Assert {
message: String,
},
Backtick {
token: Token<'src>,
output_error: OutputError,
},
RuntimeDirIo {
io_error: Error,
path: PathBuf,
},
ChooserInvoke {
shell_binary: String,
shell_arguments: String,
chooser: OsString,
io_error: Error,
},
ChooserRead {
chooser: OsString,
io_error: Error,
},
ChooserStatus {
chooser: OsString,
status: ExitStatus,
},
ChooserWrite {
chooser: OsString,
io_error: Error,
},
CircularImport {
current: PathBuf,
import: PathBuf,
},
Code {
recipe: &'src str,
line_number: Option<usize>,
code: i32,
print_message: bool,
},
CommandInvoke {
binary: OsString,
arguments: Vec<OsString>,
io_error: Error,
},
CommandStatus {
binary: OsString,
arguments: Vec<OsString>,
status: ExitStatus,
},
Compile {
compile_error: CompileError<'src>,
},
Config {
config_error: ConfigError,
},
Cygpath {
recipe: &'src str,
output_error: OutputError,
},
DefaultRecipeRequiresArguments {
recipe: &'src str,
min_arguments: usize,
},
Dotenv {
dotenv_error: Error,
},
DotenvRequired,
DumpJson {
serde_json_error: Error,
},
EditorInvoke {
editor: OsString,
io_error: Error,
},
EditorStatus {
editor: OsString,
status: ExitStatus,
},
EvalUnknownVariable {
variable: String,
suggestion: Option<Suggestion<'src>>,
},
ExcessInvocations {
invocations: usize,
},
ExpectedSubmoduleButFoundRecipe {
path: String,
},
FormatCheckFoundDiff,
FunctionCall {
function: Name<'src>,
message: String,
},
GetConfirmation {
io_error: Error,
},
Homedir,
InitExists {
justfile: PathBuf,
},
Internal {
message: String,
},
Io {
recipe: &'src str,
io_error: Error,
},
Load {
path: PathBuf,
io_error: Error,
},
MissingImportFile {
path: Token<'src>,
},
MissingModuleFile {
module: Name<'src>,
},
NoChoosableRecipes,
NoDefaultRecipe,
NoRecipes,
NotConfirmed {
recipe: &'src str,
},
RegexCompile {
source: Error,
},
Script {
command: String,
io_error: Error,
recipe: &'src str,
},
Search {
search_error: SearchError,
},
Shebang {
argument: Option<String>,
command: String,
io_error: Error,
recipe: &'src str,
},
Signal {
recipe: &'src str,
line_number: Option<usize>,
signal: i32,
},
StdoutIo {
io_error: Error,
},
TempdirIo {
recipe: &'src str,
io_error: Error,
},
TempfileIo {
io_error: Error,
},
Unknown {
recipe: &'src str,
line_number: Option<usize>,
},
UnknownSubmodule {
path: String,
},
UnknownOverrides {
overrides: Vec<String>,
},
UnknownRecipe {
recipe: String,
suggestion: Option<Suggestion<'src>>,
},
UnstableFeature {
unstable_feature: UnstableFeature,
},
WriteJustfile {
justfile: PathBuf,
io_error: Error,
},
}
Variantsยง
AmbiguousModuleFile
ArgumentCountMismatch
Assert
Backtick
RuntimeDirIo
ChooserInvoke
ChooserRead
ChooserStatus
ChooserWrite
CircularImport
Code
CommandInvoke
CommandStatus
Compile
Fields
ยง
compile_error: CompileError<'src>
Config
Fields
ยง
config_error: ConfigError
Cygpath
DefaultRecipeRequiresArguments
Dotenv
DotenvRequired
DumpJson
EditorInvoke
EditorStatus
EvalUnknownVariable
ExcessInvocations
ExpectedSubmoduleButFoundRecipe
FormatCheckFoundDiff
FunctionCall
GetConfirmation
Homedir
InitExists
Internal
Io
Load
MissingImportFile
MissingModuleFile
NoChoosableRecipes
NoDefaultRecipe
NoRecipes
NotConfirmed
RegexCompile
Script
Search
Fields
ยง
search_error: SearchError
Shebang
Signal
StdoutIo
TempdirIo
TempfileIo
Unknown
UnknownSubmodule
UnknownOverrides
UnknownRecipe
UnstableFeature
Fields
ยง
unstable_feature: UnstableFeature
WriteJustfile
Implementationsยง
Trait Implementationsยง
Sourceยงimpl<'src> ColorDisplay for Error<'src>
impl<'src> ColorDisplay for Error<'src>
Sourceยงimpl<'src> From<CompileError<'src>> for Error<'src>
impl<'src> From<CompileError<'src>> for Error<'src>
Sourceยงfn from(compile_error: CompileError<'src>) -> Self
fn from(compile_error: CompileError<'src>) -> Self
Converts to this type from the input type.
Sourceยงimpl<'src> From<ConfigError> for Error<'src>
impl<'src> From<ConfigError> for Error<'src>
Sourceยงfn from(config_error: ConfigError) -> Self
fn from(config_error: ConfigError) -> Self
Converts to this type from the input type.
Sourceยงimpl<'src> From<SearchError> for Error<'src>
impl<'src> From<SearchError> for Error<'src>
Sourceยงfn from(search_error: SearchError) -> Self
fn from(search_error: SearchError) -> Self
Converts to this type from the input type.
Auto Trait Implementationsยง
impl<'src> Freeze for Error<'src>
impl<'src> !RefUnwindSafe for Error<'src>
impl<'src> Send for Error<'src>
impl<'src> Sync for Error<'src>
impl<'src> Unpin for Error<'src>
impl<'src> !UnwindSafe for Error<'src>
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