#[non_exhaustive]pub enum Error {
CargoMetadata(String),
InvalidWidgetMetadata {
crate_name: String,
reason: String,
},
DuplicateTypeName {
type_name: String,
crates: String,
},
BuiltinCollision {
crate_name: String,
type_name: String,
},
DuplicateCrateBasename {
basename: String,
crates: String,
},
InvalidConstructor {
crate_name: String,
constructor: String,
},
Io(Error),
CargoBuildFailed(ExitStatus),
DownloadWithNativeWidgets {
widgets: String,
},
Other(Error),
}Expand description
Error type returned by library functions in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CargoMetadata(String)
Cargo metadata failed to produce a dep graph.
InvalidWidgetMetadata
A widget crate declared an incomplete or invalid
[package.metadata.plushie.widget] table.
Fields
DuplicateTypeName
Two widgets declared the same type_name.
Fields
BuiltinCollision
A widget declared a type name that is already registered by the built-in iced widget set.
Fields
DuplicateCrateBasename
Two widgets produced the same crate basename.
Fields
InvalidConstructor
A widget’s constructor expression does not look like a valid
Rust path + optional parenthesized call.
Fields
Io(Error)
Generic I/O failure during build or download.
CargoBuildFailed(ExitStatus)
Inner cargo build invocation exited with a non-zero status.
DownloadWithNativeWidgets
A cargo plushie download call found native widgets in the
dep graph; the stock binary cannot register them.
Other(Error)
Any other error surfaced through anyhow.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()