Enum eflint_to_json::Error
source · pub enum Error {
Show 15 variants
ChildFailed {
cmd: String,
status: ExitStatus,
output: ChildStreams,
},
ChildRead {
err: Error,
},
ChildWait {
err: Error,
},
ChildWrite {
err: Error,
},
CompilerDownload {
from: String,
to: PathBuf,
err: Box<Error>,
},
FileCreate {
path: PathBuf,
err: Error,
},
FileMetadata {
path: PathBuf,
err: Error,
},
FileOpen {
path: PathBuf,
err: Error,
},
FilePermissions {
path: PathBuf,
err: Error,
},
FileRead {
path: PathBuf,
err: Error,
},
IncludeOpen {
parent: PathBuf,
path: PathBuf,
err: Error,
},
MissingQuote {
parent: PathBuf,
raw: String,
},
PathCanonicalize {
parent: PathBuf,
path: PathBuf,
err: Error,
},
Spawn {
cmd: String,
err: Error,
},
WriterWrite {
err: Error,
},
}
Expand description
Defines toplevel errors.
Variants§
ChildFailed
The child failed
ChildRead
Failed to read from child stdout.
ChildWait
Failed to wait for the child to be ready.
ChildWrite
Failed to write to child stdin.
CompilerDownload
Failed to download the compiler.
NOTE: err
is boxed to not make this variant much larger in memory than the rest.
FileCreate
Failed to create the output file.
FileMetadata
Failed to get metadata of file.
FileOpen
Failed to open the input file.
FilePermissions
Failed to set permissions of file.
FileRead
Failed to read the input file.
IncludeOpen
Failed to open included file.
MissingQuote
Missing a quote in the #include
-string.
PathCanonicalize
Failed to canonicalize the given path.
Spawn
Failed to spawn the eflint-to-json compiler process.
WriterWrite
Failed to write to the output writer.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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