pub enum Error {
LoadingLibrary(Error),
LoadingVersion(Error),
LoadingInit(Error),
VersionMismatch {
host: String,
model: String,
},
Compile {
output: String,
},
Io(Error),
InitializeModel(Error),
NoModelRegistered,
Shape(Error),
Notify(Error),
CargoMetadata(Error),
AmbiguousPath {
dir: PathBuf,
possible_paths: Vec<PathBuf>,
},
}Expand description
An error that can occur when loading or reloading a model
Variants§
LoadingLibrary(Error)
Error loading model library
LoadingVersion(Error)
Error loading Fornjot version that the model uses
LoadingInit(Error)
Error loading the model’s init function
VersionMismatch
Host version and model version do not match
Compile
Model failed to compile
Io(Error)
I/O error while loading the model
InitializeModel(Error)
Initializing a model failed.
NoModelRegistered
The user forgot to register a model when calling
fj::register_model!().
Shape(Error)
An error was returned from fj::models::Model::shape().
Notify(Error)
Error while watching the model code for changes
CargoMetadata(Error)
An error occurred while trying to use evaluate
cargo_metadata::MetadataCommand.
AmbiguousPath
Fields
The user pointed us to a directory, but it doesn’t look like that was
a crate root (i.e. the folder containing Cargo.toml).
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)>
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()