#[non_exhaustive]pub enum DynamicNavmeshError {
EmptyBase,
InvalidNavmesh(NavmeshValidationError),
MissingCell {
cell_id: String,
},
MissingPortal {
left_cell_id: String,
right_cell_id: String,
},
PreparedRebuild {
source: PreparedNavmeshBuildError,
},
}Expand description
Failure while applying or materializing dynamic navmesh availability.
Covers empty bases, invalid base meshes, updates that reference unknown cell or portal ids, and prepared rebuild failures after materialization.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyBase
Base mesh had no cells when constructing dynamic state.
Base mesh failed Navmesh::validate during construction or materialize.
MissingCell
An update referenced a cell_id absent from the base mesh.
MissingPortal
An update referenced a portal whose cell-id pair is not on the base mesh.
Fields
PreparedRebuild
Prepared rebuild after materialization failed validation or preprocess.
Fields
§
source: PreparedNavmeshBuildErrorUnderlying prepared-build failure.
Trait Implementations§
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()
Source§fn from(source: NavmeshValidationError) -> Self
fn from(source: NavmeshValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
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