#[non_exhaustive]pub enum ArtifactDataError {
Show 15 variants
Io(Error),
Utf8(FromUtf8Error),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
Toml(Error),
Json(Error),
GridBuild(GridBuildError),
GridEdit(GridEditError),
GridSearch(GridSearchError),
PolygonValidation(PolygonValidationError),
NavmeshValidation(NavmeshValidationError),
DynamicNavmesh(DynamicNavmeshError),
PreparedNavmesh(PreparedNavmeshBuildError),
FlowField(FlowFieldBuildError),
Contract(Box<ArtifactContractError>),
}Expand description
Concrete parser, I/O, validation, or materialization failure behind a loader.
Domain build failures (GridBuild, NavmeshValidation, …) and
ArtifactContractError (via Self::Contract) both live here so loaders
can unify transport/format errors with payload-contract violations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Io(Error)
Filesystem or reader I/O failure while loading pack bytes.
Utf8(FromUtf8Error)
Pack bytes were not valid UTF-8 text.
ParseInt(ParseIntError)
Integer field parse failed in a text pack format.
ParseFloat(ParseFloatError)
Floating-point field parse failed in a text pack format.
Toml(Error)
TOML decode failed for a pack document.
Json(Error)
JSON decode failed for a pack document.
GridBuild(GridBuildError)
Domain grid construction rejected the decoded payload.
GridEdit(GridEditError)
Domain grid edit rejected a decoded mutation.
GridSearch(GridSearchError)
Domain grid search failed while materializing pack-backed work.
PolygonValidation(PolygonValidationError)
Continuous polygon scene validation failed.
Static navmesh validation failed.
Dynamic navmesh overlay validation failed.
Prepared navmesh preprocess failed after decode.
FlowField(FlowFieldBuildError)
Flow-field build failed for a pack-backed story/fixture.
Contract(Box<ArtifactContractError>)
Decoded payload violated a stable pack-schema contract.
Trait Implementations§
Source§impl Debug for ArtifactDataError
impl Debug for ArtifactDataError
Source§impl Display for ArtifactDataError
impl Display for ArtifactDataError
Source§impl Error for ArtifactDataError
impl Error for ArtifactDataError
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()
Source§fn from(source: DynamicNavmeshError) -> Self
fn from(source: DynamicNavmeshError) -> Self
Source§impl From<Error> for ArtifactDataError
impl From<Error> for ArtifactDataError
Source§impl From<Error> for ArtifactDataError
impl From<Error> for ArtifactDataError
Source§impl From<Error> for ArtifactDataError
impl From<Error> for ArtifactDataError
Source§impl From<FlowFieldBuildError> for ArtifactDataError
impl From<FlowFieldBuildError> for ArtifactDataError
Source§fn from(source: FlowFieldBuildError) -> Self
fn from(source: FlowFieldBuildError) -> Self
Source§impl From<FromUtf8Error> for ArtifactDataError
impl From<FromUtf8Error> for ArtifactDataError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Source§impl From<GridBuildError> for ArtifactDataError
impl From<GridBuildError> for ArtifactDataError
Source§fn from(source: GridBuildError) -> Self
fn from(source: GridBuildError) -> Self
Source§impl From<GridEditError> for ArtifactDataError
impl From<GridEditError> for ArtifactDataError
Source§fn from(source: GridEditError) -> Self
fn from(source: GridEditError) -> Self
Source§impl From<GridSearchError> for ArtifactDataError
impl From<GridSearchError> for ArtifactDataError
Source§fn from(source: GridSearchError) -> Self
fn from(source: GridSearchError) -> Self
Source§fn from(source: NavmeshValidationError) -> Self
fn from(source: NavmeshValidationError) -> Self
Source§impl From<ParseFloatError> for ArtifactDataError
impl From<ParseFloatError> for ArtifactDataError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Source§impl From<ParseIntError> for ArtifactDataError
impl From<ParseIntError> for ArtifactDataError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Source§impl From<PolygonValidationError> for ArtifactDataError
impl From<PolygonValidationError> for ArtifactDataError
Source§fn from(source: PolygonValidationError) -> Self
fn from(source: PolygonValidationError) -> Self
Source§fn from(source: PreparedNavmeshBuildError) -> Self
fn from(source: PreparedNavmeshBuildError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for ArtifactDataError
impl !UnwindSafe for ArtifactDataError
impl Freeze for ArtifactDataError
impl Send for ArtifactDataError
impl Sync for ArtifactDataError
impl Unpin for ArtifactDataError
impl UnsafeUnpin for ArtifactDataError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more