pub enum Error {
Show 16 variants
Config(String),
Bootloader(String),
ImageBuild(String),
Runner(String),
Firmware(String),
Template(String),
FileNotFound(PathBuf),
MissingConfig(String),
InvalidConfig {
field: String,
value: String,
},
FeatureNotEnabled(String),
UnsupportedCombination(String),
Io(Error),
TomlDe(Error),
Json(Error),
CargoMetadata(Error),
Git(Error),
}Expand description
Main error type for cargo-image-runner.
Variants§
Config(String)
Configuration-related errors.
Bootloader(String)
Bootloader-related errors.
ImageBuild(String)
Image building errors.
Runner(String)
Runner execution errors.
Firmware(String)
Firmware-related errors.
Template(String)
Template processing errors.
FileNotFound(PathBuf)
File not found.
MissingConfig(String)
Missing required configuration field.
InvalidConfig
Invalid configuration value.
FeatureNotEnabled(String)
Feature not enabled.
UnsupportedCombination(String)
Unsupported combination of options.
Io(Error)
IO error.
TomlDe(Error)
TOML deserialization error.
Json(Error)
JSON error.
CargoMetadata(Error)
Cargo metadata error.
Git(Error)
Git error (when limine feature is enabled).
Implementations§
Source§impl Error
impl Error
Sourcepub fn bootloader(msg: impl Into<String>) -> Self
pub fn bootloader(msg: impl Into<String>) -> Self
Create a bootloader error.
Sourcepub fn image_build(msg: impl Into<String>) -> Self
pub fn image_build(msg: impl Into<String>) -> Self
Create an image build error.
Sourcepub fn feature_not_enabled(feature: impl Into<String>) -> Self
pub fn feature_not_enabled(feature: impl Into<String>) -> Self
Create a feature not enabled error.
Sourcepub fn unsupported(msg: impl Into<String>) -> Self
pub fn unsupported(msg: impl Into<String>) -> Self
Create an unsupported combination error.
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 UnsafeUnpin 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