Enum flatbuffers_build::Error
source · pub enum Error {
FlatcErrorCode {
status_code: Option<i32>,
stdout: String,
stderr: String,
},
InvalidFlatcOutput(String),
UnsupportedFlatcVersion(String),
FlatcSpawnFailure(Error),
OutputDirNotSet,
SymlinkCreationFailure(Error),
}
Expand description
Primary error type returned when you compile your flatbuffer specifications to Rust.
Variants§
FlatcErrorCode
Returned when flatc
returns with an non-zero status code for a reason not covered
elsewhere in this enum.
Fields
InvalidFlatcOutput(String)
Returned if flatc --version
generates output we cannot parse. Usually means that the
binary requested is not, in fact, flatc.
UnsupportedFlatcVersion(String)
Returned if the version of flatc
does not match the supported version. Please refer to
SUPPORTED_FLATC_VERSION
for that.
FlatcSpawnFailure(Error)
Returned if we fail to spawn a process with flatc
. Usually means the supplied path to
flatc does not exist.
OutputDirNotSet
Returned if you failed to set either the output path or the OUT_DIR
environment variable.
SymlinkCreationFailure(Error)
Returned when an issue arrises when creating the symlink. Typically this will be things like permissions, a directory existing already at the file location, or other filesystem errors.