pub_just::error

Enum Error

Source
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

Fields

ยงmodule: Name<'src>
ยง

ArgumentCountMismatch

Fields

ยงrecipe: &'src str
ยงparameters: Vec<Parameter<'src>>
ยง

Assert

Fields

ยงmessage: String
ยง

Backtick

Fields

ยงtoken: Token<'src>
ยงoutput_error: OutputError
ยง

RuntimeDirIo

Fields

ยงio_error: Error
ยง

ChooserInvoke

Fields

ยงshell_binary: String
ยงshell_arguments: String
ยงio_error: Error
ยง

ChooserRead

Fields

ยงio_error: Error
ยง

ChooserStatus

Fields

ยง

ChooserWrite

Fields

ยงio_error: Error
ยง

CircularImport

Fields

ยงcurrent: PathBuf
ยง

Code

Fields

ยงrecipe: &'src str
ยงline_number: Option<usize>
ยงcode: i32
ยงprint_message: bool
ยง

CommandInvoke

Fields

ยงarguments: Vec<OsString>
ยงio_error: Error
ยง

CommandStatus

Fields

ยงarguments: Vec<OsString>
ยง

Compile

Fields

ยงcompile_error: CompileError<'src>
ยง

Config

Fields

ยงconfig_error: ConfigError
ยง

Cygpath

Fields

ยงrecipe: &'src str
ยงoutput_error: OutputError
ยง

DefaultRecipeRequiresArguments

Fields

ยงrecipe: &'src str
ยงmin_arguments: usize
ยง

Dotenv

Fields

ยงdotenv_error: Error
ยง

DotenvRequired

ยง

DumpJson

Fields

ยงserde_json_error: Error
ยง

EditorInvoke

Fields

ยงio_error: Error
ยง

EditorStatus

Fields

ยง

EvalUnknownVariable

Fields

ยงvariable: String
ยงsuggestion: Option<Suggestion<'src>>
ยง

ExcessInvocations

Fields

ยงinvocations: usize
ยง

ExpectedSubmoduleButFoundRecipe

Fields

ยง

FormatCheckFoundDiff

ยง

FunctionCall

Fields

ยงfunction: Name<'src>
ยงmessage: String
ยง

GetConfirmation

Fields

ยงio_error: Error
ยง

Homedir

ยง

InitExists

Fields

ยงjustfile: PathBuf
ยง

Internal

Fields

ยงmessage: String
ยง

Io

Fields

ยงrecipe: &'src str
ยงio_error: Error
ยง

Load

Fields

ยงio_error: Error
ยง

MissingImportFile

Fields

ยงpath: Token<'src>
ยง

MissingModuleFile

Fields

ยงmodule: Name<'src>
ยง

NoChoosableRecipes

ยง

NoDefaultRecipe

ยง

NoRecipes

ยง

NotConfirmed

Fields

ยงrecipe: &'src str
ยง

RegexCompile

Fields

ยงsource: Error
ยง

Script

Fields

ยงcommand: String
ยงio_error: Error
ยงrecipe: &'src str
ยง

Search

Fields

ยงsearch_error: SearchError
ยง

Shebang

Fields

ยงargument: Option<String>
ยงcommand: String
ยงio_error: Error
ยงrecipe: &'src str
ยง

Signal

Fields

ยงrecipe: &'src str
ยงline_number: Option<usize>
ยงsignal: i32
ยง

StdoutIo

Fields

ยงio_error: Error
ยง

TempdirIo

Fields

ยงrecipe: &'src str
ยงio_error: Error
ยง

TempfileIo

Fields

ยงio_error: Error
ยง

Unknown

Fields

ยงrecipe: &'src str
ยงline_number: Option<usize>
ยง

UnknownSubmodule

Fields

ยง

UnknownOverrides

Fields

ยงoverrides: Vec<String>
ยง

UnknownRecipe

Fields

ยงrecipe: String
ยงsuggestion: Option<Suggestion<'src>>
ยง

UnstableFeature

Fields

ยงunstable_feature: UnstableFeature
ยง

WriteJustfile

Fields

ยงjustfile: PathBuf
ยงio_error: Error

Implementationsยง

Sourceยง

impl<'src> Error<'src>

Source

pub fn code(&self) -> Option<i32>

Source

pub fn internal(message: impl Into<String>) -> Self

Source

pub fn print_message(&self) -> bool

Trait Implementationsยง

Sourceยง

impl<'src> ColorDisplay for Error<'src>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>, color: Color) -> Result

Sourceยง

fn color_display(&self, color: Color) -> Wrapper<'_>
where Self: Sized,

Sourceยง

impl<'src> Debug for Error<'src>

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl<'src> From<CompileError<'src>> for Error<'src>

Sourceยง

fn from(compile_error: CompileError<'src>) -> Self

Converts to this type from the input type.
Sourceยง

impl<'src> From<ConfigError> for Error<'src>

Sourceยง

fn from(config_error: ConfigError) -> Self

Converts to this type from the input type.
Sourceยง

impl<'src> From<Error> for Error<'src>

Sourceยง

fn from(dotenv_error: Error) -> Error<'src>

Converts to this type from the input type.
Sourceยง

impl<'src> From<SearchError> for Error<'src>

Sourceยง

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> Any for T
where T: 'static + ?Sized,

Sourceยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Sourceยง

impl<T> Borrow<T> for T
where T: ?Sized,

Sourceยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Sourceยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

Sourceยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Sourceยง

impl<T> From<T> for T

Sourceยง

fn from(t: T) -> T

Returns the argument unchanged.

Sourceยง

impl<T, U> Into<U> for T
where U: From<T>,

Sourceยง

fn into(self) -> U

Calls U::from(self).

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

Sourceยง

impl<T> Pointable for T

Sourceยง

const ALIGN: usize = _

The alignment of pointer.
Sourceยง

type Init = T

The type for initializers.
Sourceยง

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Sourceยง

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Sourceยง

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Sourceยง

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Sourceยง

impl<T> Same for T

Sourceยง

type Output = T

Should always be Self
Sourceยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Sourceยง

type Error = Infallible

The type returned in the event of a conversion error.
Sourceยง

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Sourceยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Sourceยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Sourceยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Sourceยง

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Sourceยง

fn vzip(self) -> V